Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

On disconnect the python process does not exit with 0 #61

Closed
karthiknadig opened this issue Feb 12, 2018 · 1 comment
Closed

On disconnect the python process does not exit with 0 #61

karthiknadig opened this issue Feb 12, 2018 · 1 comment

Comments

@karthiknadig
Copy link
Member

The program 'python.exe' has exited with code -1 (0xffffffff).

Also, adapter logs show that exited and terminated events were not fired. But disconnect was acknowledged:

 1> [DebugAdapter] --> C (disconnect-11): {"command":"disconnect","arguments":{"terminateDebuggee":true},"seq":11,"type":"request"}
 1> [DebugAdapter] <--   R (disconnect-11): {"type": "response", "seq": 13, "request_seq": 11, "success": true, "command": "disconnect", "message": "", "body": {}}
@huguesv huguesv added this to the Preview 1 milestone Feb 15, 2018
@karthiknadig
Copy link
Member Author

This is fixed, the log looks as expected.
The program 'python.exe' has exited with code 0 (0x0).
Debug adapter host logs:

 1> [DebugAdapter] --> C (disconnect-5): {"command":"disconnect","arguments":{"terminateDebuggee":false},"seq":5,"type":"request"}
 1> [DebugAdapter] <--   E (exited): {"type": "event", "seq": 7, "event": "exited", "body": {"exitCode": 0}}
 1> [DebugAdapter] <--   E (terminated): {"type": "event", "seq": 8, "event": "terminated", "body": {}}
 1> [DebugAdapter] <--   R (disconnect-5): {"type": "response", "seq": 9, "request_seq": 5, "success": true, "command": "disconnect", "message": "", "body": {}}

Note: that terminateDebuggee is currently not handled by ptvsd. but there is a separate bug for that #136

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants