You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS and version: Windows 10.0.19042 N/A Build 19042
Python version (& distribution if applicable, e.g. Anaconda): 3.9.5 Anaconda 64bit
Using VS Code or Visual Studio: VS Code 1.60.2
Actual behavior
When an exception is raised within a function, and that function is called from the debug console, it repeats the function once again (but only once). Error only occurs when calling function from debug console, if just stepping through in debug mode or running the code normally it does not occur
Expected behavior
The exception should just be raised as normal.
Steps to reproduce:
Include an exception in a basic function and call it from the debug console.
The text was updated successfully, but these errors were encountered:
Since there's only one traceback, the function is only executed once; it looks like it just duplicated the output. We had a bug about that - #133 - but it's supposed to be fixed, so we must have regressed that somehow.
If the underlying cause is the same, try setting "redirectOutput": false in your launch.json, and see if that helps.
Hi , thanks for your reply. Setting "redirectOutput": false doesn't solve the issue for me. It does seem like the function is executed twice rather than just duplicating the output, since the function i originally noticed this on includes a subprocess call to set an external process going, plus a time.sleep() call, and you see the external process open and start twice, and the same pause between twice - does that seem like a different issue?
Environment data
Actual behavior
When an exception is raised within a function, and that function is called from the debug console, it repeats the function once again (but only once). Error only occurs when calling function from debug console, if just stepping through in debug mode or running the code normally it does not occur
Expected behavior
The exception should just be raised as normal.
Steps to reproduce:
Include an exception in a basic function and call it from the debug console.
The text was updated successfully, but these errors were encountered: