$PSVersionTable:$pseditor.EditorServicesVersion:
Major Minor Build Revision
1 5 1 0
One Dark Plus (2.0.0)
Path Intellisense (1.4.2)
PowerShell (1.5.1)
PowersShell Stack Overflow (0.0.2)
RSPG - Random String or Password Generator (1.0.1)
Settings Sync (2.8.6)
I am experiencing a problem with...
Crashing debugger, especially if I set break points
A lot of times the debugger crashes and a complete restart of VSCode is needed.
And if a break point is hit and I step over the point the debugger does not progress unless I hit a key on my keyboard.
I have to say though that adding the option ""powershell.developer.editorServicesLogLevel": "Verbose" seems to have stabalised the debugger a bit. Odd how that works, could be coincidense. Perhaps the logs can tell you guys more, I hope so!
Seeing the same thing, nearly same specs (os version, ps version, etc)
I'm seeing the same issue with everything the same except OSX 10.12.6, where the debugger seems to hang/crash. I'm trying to follow this walkthrough on PowerShell debugging.
After the Examples folder has loaded, open the DebugTest.ps1 file, and set a breakpoint on the line that has the Start-Sleep command.
I've enabled the Verbose logging as shown and attached logs from an attempt at a debug session that hangs.
"powershell.developer.editorServicesLogLevel": "Verbose"
$PSVersionTable:PS /Users/lantrix/.vscode/extensions/ms-vscode.powershell-1.5.1/examples> code -v
1.18.1
929bacba01ef658b873545e26034d1a8067445e9
PS /Users/lantrix/.vscode/extensions/ms-vscode.powershell-1.5.1/examples> $pseditor.EditorServicesVersion
Major Minor Build Revision
----- ----- ----- --------
1 5 1 0
PS /Users/lantrix/.vscode/extensions/ms-vscode.powershell-1.5.1/examples> code --list-extensions --show-versions
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
PS /Users/lantrix/.vscode/extensions/ms-vscode.powershell-1.5.1/examples> $PSVersionTable
Name Value
---- -----
PSVersion 6.0.0-rc
PSEdition Core
GitCommitId v6.0.0-rc
OS Darwin 16.7.0 Darwin Kernel Version 16.7.0: Wed Oct 4 00:17:00 PDT 2017; root:xnu-3789.71.6~1/RELEASE_X86_64
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Same as @reddwarf666 - Debugger crashes a lot when BreakPoints are set in vscode-powershell
There are two crippling bugs in debugging on non-Windows systems. The one you've run into - I call the InvalidOperationException / Task.SetResult called on an already completed task ... bug. And the other is that the debugger is locked until you press enter in the PowerShell Integrated Console. I've burned several days trying to fix these but I'm afraid as of yet - there is not a simple fix that I've found. :-(
Wow - the debugger being locked until I press enter - that's something I would not have picked up. Thanks for that. My normal IDE/debug for PowerShell is ISESteroids, and of course that works like a dream on Windows.
@SeeminglyScience mentioned to me today that he might have fixed the debugger hanging issues, so hopefully we can get that merged soon!
Any ETA on this merge happening?
@SeeminglyScience Just curious where you ended up on that potential fix. I can assist in any way if you need another set of eyes!
@tylerl0706 The fix is good, just a lot of logistics. I separated out the native code that's required for the fix into a different project, I just need to build it on all the platforms and publish the package so we can consume it.
The repo is UnixConsoleEcho.
I can assist in any way if you need another set of eyes!
If you could build the dylib on Mac and shoot it over to me that'd be very helpful. That's the one environment I can't build it on atm. Invoke-Build should work as is, assuming you have xcode installed, g++ is in your path, and I guessed the Mac compiler options correctly :)
Also if you (or any other PSES maintainers) want access to the repo let me know.
After that's published I'll get a PR with the PSES changes up.
Awesome, @SeeminglyScience!!
If you could build the dylib on Mac and shoot it over to me that'd be very helpful.
Happy to help 馃槂
I ran into an error building from source and opened it here: https://github.com/SeeminglyScience/UnixConsoleEcho/issues/1
Let me know what you think!
Most helpful comment
@SeeminglyScience mentioned to me today that he might have fixed the debugger hanging issues, so hopefully we can get that merged soon!