Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems getting the debug system to behave #746

Closed
johnbeh opened this issue May 15, 2017 · 4 comments
Closed

Problems getting the debug system to behave #746

johnbeh opened this issue May 15, 2017 · 4 comments
Labels

Comments

@johnbeh
Copy link

johnbeh commented May 15, 2017

System Details

  • Operating system name and version:
  • VS Code version:
  • PowerShell extension version:
  • Output from $PSVersionTable:
Copy / paste the below commands into the PowerShell Integrated Terminal, and paste the output here

PS C:\JHScripts> code -v

1.12.1
f6868fce3eeb16663840eb82123369dec6077a9b
PS C:\Windows\System32> $pseditor.EditorServicesVersion


Major  Minor  Build  Revision
-----  -----  -----  --------
1      0      0      0


PS C:\Windows\System32> code --list-extensions --show-versions

[email protected]
PS C:\Windows\System32> $PSVersionTable


Name                           Value
----                           -----
PSVersion                      5.1.15063.296
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.15063.296
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1


PS C:\Windows\System32>

Issue Description

DEBUG

I can't persuade the F5 on the standard install to behave anything like sensibly. If I have ONE PS1 file open it will run sensibly.

If I have a second file open it doesn't run at all. The little blue line just under the DEBUG line and above the VARIABLES section moves back and forward for ever. I've given it 10 minutes to run a script that the POWESHELL ISE runs in 2 or 3 seconds.

It seems that this is solved by changing the Version in Launch.json from
"version": "0.2.0", to
"version": "0.1.0",

BUT this can't possibly be the right answer although it suffices for the moment

Attached Logs

Follow the instructions in the README
about capturing and sending logs.

@daviwil
Copy link
Contributor

daviwil commented May 15, 2017

You shouldn't have a different experience when opening more than one file, the debugger will only launch the currently active file when using the "current file" configuration. Can you attach logs from a session where the debugger exhibits this behavior?

https://github.com/PowerShell/vscode-powershell#reporting-problems

@daviwil daviwil added Area-Debugging Issue-Bug A bug to squash. labels May 15, 2017
@daviwil daviwil added this to the May 2017 milestone May 15, 2017
@daviwil daviwil modified the milestones: May 2017, June 2017 Jun 1, 2017
@daviwil
Copy link
Contributor

daviwil commented Jun 22, 2017

@johnbeh I'd like to take a look at this issue soon, could you capture and attach (or send via email) your logs so that I can take a look?

https://github.com/PowerShell/vscode-powershell#reporting-problems

@johnbeh
Copy link
Author

johnbeh commented Jun 23, 2017

Sorry not to have commented earlier.
In recent days I have not been able to reproduce this.
I think it was related to the issue of "long running formatting" which has been raised by other people and has been solved.
Part of the problem is that I am a complete novice with VSCode and didn't realise what the system was doing at the time.

Just as an aside - I am very pleased and grateful for the tremendous efforts that are going on with this project.

Thank you all very much.

Regards

John

@daviwil
Copy link
Contributor

daviwil commented Jun 23, 2017

Thanks for the kind words John, glad the issue has been resolved for you! Let us know if you see anything similar again :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants