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

Debugger not pausing in VS Code Unit tests #78

@DonJayamanne

Description

@DonJayamanne

Pausing works in the VS Code UI, however not when running the unit tests
The disconnect request is sent by the test adapter after waiting 5 minutes for the stop event.
As you can see the stop event is not sent back.

  • Here's a log of all the communication (from ipcjson.py)
Input
{"type":"request","seq":1,"command":"initialize","arguments":{"adapterID":"pythonExperimental","linesStartAt1":true,"columnsStartAt1":true,"pathFormat":"path"}}
Output
b'{"type": "response", "seq": 0, "request_seq": 1, "success": true, "command": "initialize", "message": "", "body": {"supportsExceptionInfoRequest": true, "supportsConfigurationDoneRequest": true, "supportsConditionalBreakpoints": true, "supportsSetVariable": true, "supportsExceptionOptions": true, "exceptionBreakpointFilters": [{"filter": "raised", "label": "Raised Exceptions", "default": "true"}, {"filter": "uncaught", "label": "Uncaught Exceptions", "default": "true"}]}}'
Output
b'{"type": "event", "seq": 1, "event": "initialized", "body": {}}'
Input
{"type":"request","seq":3,"command":"configurationDone"}
Output
b'{"type": "response", "seq": 2, "request_seq": 3, "success": true, "command": "configurationDone", "message": "", "body": {}}'
Input
{"type":"request","seq":4,"command":"threads"}
Output
b'{"type": "response", "seq": 3, "request_seq": 4, "success": true, "command": "threads", "message": "", "body": {"threads": [{"id": 1, "name": "MainThread"}]}}'
Input
{"type":"request","seq":5,"command":"pause","arguments":{"threadId":1}}
Output
b'{"type": "response", "seq": 4, "request_seq": 5, "success": true, "command": "pause", "message": "", "body": {}}'
Input
{"type":"request","seq":6,"command":"disconnect"}
Output
b'{"type": "response", "seq": 5, "request_seq": 6, "success": true, "command": "disconnect", "message": "", "body": {}}'
Output
b'{"type": "event", "seq": 6, "event": "exited", "body": {"exitCode": 0}}'
Output
b'{"type": "event", "seq": 7, "event": "terminated", "body": {}}'

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions