-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
The simple initialization of ProgressBar is throwing "The handle is invalid." exception in VSCode while debugging. #92
Comments
Hi @mnsrulz |
If you can share the output from |
Repro steps
Start debugging by hitting F5 key and it will land in the catch block. Here's the output of
|
Hi Again In the meantime I think I have found a possible workaround, described here; (unforunately I've not been able to test the suggestion) in the link below roblourens suggests using description here If this works, then a good protection (code change I can include in next release) for konsole might work as follows, ...perhaps;
For step2 there is no practical way to keep track of all window and konsole commands and render anything useful to a debug console screen, so I think step 2 is a red-herring ..i.e. a no-go. A better step 2 would be, if running in debug, and in vscode and an instance of Konsole window or control is created to throw a badOperation or better exception with error message, konsole is not supported in vscode in debug mode without using `externalTerminal` in `launch.json`
Please update your `launch.json` (using link xyz) and restart your debugging session. ... and provide a link to a step by step notes on how to use that setting. (or include all instructions in error message if short is possible.) A third option, that would require significant testing, and some non-trivial TDD testing would be to detect VSCode debugging as per 2 above, and disable rendering of the konsole window. Unfortunately I dont have time at present to investigate option 3 without having access to a windows machine that reproduces the exceptions. Hopefully the workaround of p.s. if you drop the stack trace I'll take a look at that, and if you can please let me know if externalTerminal works that will be very helpful, txs, A |
Yes the Stack trace is as below for further analysis:
|
Hi @mnsrulz |
I'm re-opening this issue (and tagging it with notAbug) so that the advice can be viewed by anyone else experiencing same issue. |
The simple initialization of
ProgressBar
is throwing"The handle is invalid."
exception in VSCode while debugging.The text was updated successfully, but these errors were encountered: