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
code will be stopped in the same way as when I click Ctrl+C
in my code I can use except asyncio.CancelledError as e: to catch this exception on the needed level and exit my program gratefully. I do not do it for Ctrl + C and it works well for me
when I stop my code gratefully, I can close WebSocket, DB and other opened connections. It will avoid problems with unclosed network connections and file descriptors
Actual:
when I stop debugger using red square, it kills the process
any signals like these aren't raised by debugger: signal.signal(signal.SIGINT, signal_handler) or signal.signal(signal.SIGTERM, signal_handler)
Workaround:
as for now, we can go to the terminal with debugger and press there Ctrl + C. It will stop debugger in a needed way
I would like to see an option in the launch.json file that allows to control how debugger is existed - by killing the process or by sending a signal. Sending a signal is a preferred way as it allows to handle program exit in a predefined way.
Related to implementing this issue: microsoft/vscode-python-debugger#316
Example Use Cases
Related Issues
The text was updated successfully, but these errors were encountered: