-
Notifications
You must be signed in to change notification settings - Fork 510
[System.Runtime.Interopservices.Marshal]::ReleaseComObject() causes debugger crashes in latest release #3511
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
Hey, I'm releasing an update to the preview extension probably tomorrow with a lot of debugger stability fixes. I'll ping you here when it's available on the marketplace, would love to see if we get lucky and the problem goes away. |
Any chance we got lucky? v2021.8.1-preview (aka "PowerShell Preview") is up! |
Looks like with that version, I can't reliably invoke the debugging session. Sometimes it will launch the script, sometimes it won't. Most of the time it won't, actually. But when it does (after a fresh VS Code launch for example), things no longer crash while debugging the script! So - Yay? One step back - one step forward. |
Yup, one step forward and one step backward is exactly how this feels sometimes. Slowly starting in on the test project to bring all our existing tests back online, and am making a deliberate point to add regression tests for everything fixed going forward, because the state of this is just...rough. |
Also for not being able to reliably invoke the debugging session, I think that's #3513. |
Thank you for the work you're doing with this!!! |
PowerShell Preview 2021.8.2 will be out in just a few minutes, would you test and confirm this issue has been fully resolved? Thanks! |
@GeekTieGuy ok that's available on the marketplace! It seems promising, can you see if it still repros? |
I've been able to work in the debugger much better now. I would consider things good enough now to close this issue, so I'll just do that. |
Prerequisites
Summary
I'm using PowerShell to automate Excel via COM objects, and did not experience debugger crashes before the update to the latest extension. The debugger crash seems to happen when making calls to [System.Runtime.Interopservices.Marshal]::ReleaseComObject()
I'm unsure of how exactly I can provide a reproduction recipe. I'm open to suggestions.
I can work around the issue for now by not running my scripts in the debugger, but if I had been at an earlier stage of my work, having the debugger crash would have slowed me down a lot.
PowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
Visuals
No response
Logs
I'd rather email these. Please let me know when you want them (if you want them).
The text was updated successfully, but these errors were encountered: