-
Notifications
You must be signed in to change notification settings - Fork 511
Binary Module Debugging with Script specified causes a terminal error exit -1 at the end of the debugging session on Windows only #4702
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
Comments
/cc @JustinGrote |
@ALIENQuake what kind of "crash"? Full system crash? vscode crash? Can you use a tool like screen2gif or zoomit to record what happens? The process just triggers the omnisharp debugger so anything that would make that crash would make this crash. |
@JustinGrote His is how it looks at my side: explorer_RMJOMJBc59.mp4 |
@ALIENQuake I see an F: drive in use here. Is this a local drive or a network share? |
@JustinGrote All drives are local ones. |
Also according to the logs, your import module resolves to |
@JustinGrote The path to the dll is correct as I'm able to import it before launching Test-SampleCmdlet. This is my launch.json:
|
OK, I'm seeing this too, I think it may have something to do with the major 2.0 C# update. |
@andyleejordan is there anything in PSES that would cause it to |
@JustinGrote I still can't debug anything. I simply want to recreate the debugging experience that you have presented at #3903 but no matter what I do, I'm getting crash and debugged doesn't stop at the .cs file breakpoints. |
Not that I can think of! |
@ALIENQuake debugging and breakpoints work just fine for me with the PowerShell standard example, I can't reproduce: |
I confirm that debugging works, thumbs up for resolving remaining error. |
@ALIENQuake glad to hear, I'm going to retitle this issue and reuse it for solving the terminal error |
The problem is that the attach being stopped actually kills the process rather than disconnecting, but there doesn't appear to be an extension api to initiate a disconnect, so this is blocked on: |
Thanks for debugging @JustinGrote! |
@JustinGrote Thank you! |
Prerequisites
Summary
I'm getting a crash when I attempt to debug the binary module using a new configuration. The module is the not altered example binary module.
Launching test script works:
Test-SampleCmdlet -FavoriteNumber 8 -FavoritePet Dog
PowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
Visuals
No response
Logs
logs.zip
sessions.zip
The text was updated successfully, but these errors were encountered: