-
Notifications
You must be signed in to change notification settings - Fork 68
Breakpoint not hit after re-attaching to remote debugger #295
Description
Similar to #78
@brettcannon @ericsnowcurrently @int19h
Here's the scenario:
- Start a program for remote debugging (
ptvsd -m ptvsd --server --port 9091 --file one.py - Attach the debugger
- Add a breakpoint to line
7 - Wait for debugger to break, then remove breakpoint and continue
- Detach the debugger
- Attach debugger once again (you'll need the PR Add ability to attach, detach and attach once again #287)
- Add a breakpoint to line
7 - Wait for debugger to break
- Breakpoint will hit
This is great, it works in VSC.
The exact same steps in the VSC unit tests don't. Currently I've created a PR with unit tests to test attach, detach and attach (i.e. re-attach).
microsoft/vscode-python#1274
Unfortunately it does not work, UNLESS I make a request for the threads immediately after the configurationDone response.
I.e. once again (#78) we have a situation where debugger works in VSC UI, but not in the unit tests.
Logs when it does NOT work
Sent contentb'{"type": "event", "seq": 0, "event": "output", "body": {"category": "telemetry", "output": "ptvsd", "data": {"version": "4.0.0a5"}}}' Received {'type': 'request', 'seq': 2, 'command': 'attach', 'arguments': {'localRoot': '/Users/donjayamanne/.vscode-insiders/extensions/pythonVSCode/src/testMultiRootWkspc/workspace5', 'remoteRoot': '/Users/donjayamanne/.vscode-insiders/extensions/pythonVSCode/src/testMultiRootWkspc/workspace5', 'type': 'pythonExperimental', 'port': 9091, 'host': 'localhost', 'logToFile': True, 'debugOptions': ['RedirectOutput']}} Sent contentb'{"type": "response", "seq": 1, "request_seq": 2, "success": true, "command": "attach", "message": "", "body": {}}' Received {'type': 'request', 'seq': 1, 'command': 'initialize', 'arguments': {'adapterID': 'pythonExperimental', 'linesStartAt1': True, 'columnsStartAt1': True, 'supportsRunInTerminalRequest': True, 'pathFormat': 'path', 'supportsVariableType': True, 'supportsVariablePaging': True}} Sent contentb'{"type": "response", "seq": 2, "request_seq": 1, "success": true, "command": "initialize", "message": "", "body": {"supportsExceptionInfoRequest": true, "supportsConfigurationDoneRequest": true, "supportsConditionalBreakpoints": true, "supportsSetVariable": true, "supportsExceptionOptions": true, "supportsEvaluateForHovers": true, "supportsValueFormattingOptions": true, "supportsSetExpression": true, "supportsModulesRequest": true, "exceptionBreakpointFilters": [{"filter": "raised", "label": "Raised Exceptions", "default": false}, {"filter": "uncaught", "label": "Uncaught Exceptions", "default": true}]}}' Sent contentb'{"type": "event", "seq": 3, "event": "initialized", "body": {}}' Received {'type': 'request', 'seq': 3, 'command': 'configurationDone'} Sent contentb'{"type": "response", "seq": 4, "request_seq": 3, "success": true, "command": "configurationDone", "message": "", "body": {}}' Received {'type': 'request', 'seq': 4, 'command': 'setExceptionBreakpoints', 'arguments': {'filters': []}} Sent contentb'{"type": "response", "seq": 5, "request_seq": 4, "success": true, "command": "setExceptionBreakpoints", "message": "", "body": {}}' Received {'type': 'request', 'seq': 5, 'command': 'setBreakpoints', 'arguments': {'lines': [7], 'breakpoints': [{'line': 7, 'column': 1}], 'source': {'path': '/Users/donjayamanne/.vscode-insiders/extensions/pythonVSCode/src/testMultiRootWkspc/workspace5/remoteDebugger-start-with-ptvsd.re-attach.py'}}} Sent contentb'{"type": "response", "seq": 6, "request_seq": 5, "success": true, "command": "setBreakpoints", "message": "", "body": {"breakpoints": [{"id": 1, "verified": true, "line": 7}]}}' Sent contentb'{"type": "event", "seq": 7, "event": "process", "body": {"name": "/Users/donjayamanne/.vscode-insiders/extensions/pythonVSCode/src/testMultiRootWkspc/workspace5/remoteDebugger-start-with-ptvsd.re-attach.py", "systemProcessId": 98365, "isLocalProcess": true, "startMethod": "attach"}}' Sent contentb'{"type": "event", "seq": 8, "event": "thread", "body": {"reason": "started", "threadId": 1}}' Sent contentb'{"type": "event", "seq": 9, "event": "stopped", "body": {"reason": "breakpoint", "threadId": 1, "text": null, "description": null}}' Received {'type': 'request', 'seq': 6, 'command': 'stackTrace', 'arguments': {'threadId': 1}} Sent contentb'{"type": "event", "seq": 10, "event": "module", "body": {"reason": "new", "module": {"id": 1, "package": null, "path": "/Users/donjayamanne/.vscode-insiders/extensions/pythonVSCode/src/testMultiRootWkspc/workspace5/remoteDebugger-start-with-ptvsd.re-attach.py", "name": "__main__"}}}' Sent contentb'{"type": "event", "seq": 11, "event": "module", "body": {"reason": "new", "module": {"id": 2, "package": "_pydev_imps", "path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/pydevd/_pydev_imps/_pydev_execfile.py", "name": "_pydev_imps._pydev_execfile"}}}' Sent contentb'{"type": "event", "seq": 12, "event": "module", "body": {"reason": "new", "module": {"id": 3, "package": "", "path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/pydevd/pydevd.py", "name": "pydevd", "version": "1.1.1"}}}' Sent contentb'{"type": "event", "seq": 13, "event": "module", "body": {"reason": "new", "module": {"id": 4, "package": "ptvsd", "path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/__main__.py", "name": "__main__", "version": "4.0.0a5"}}}' Sent contentb'{"type": "event", "seq": 14, "event": "module", "body": {"reason": "new", "module": {"id": 5, "package": "", "path": "/Users/donjayamanne/anaconda3/lib/python3.6/runpy.py", "name": "runpy"}}}' Sent contentb'{"type": "response", "seq": 15, "request_seq": 6, "success": true, "command": "stackTrace", "message": "", "body": {"stackFrames": [{"id": 1, "name": "", "source": {"path": "/Users/donjayamanne/.vscode-insiders/extensions/pythonVSCode/src/testMultiRootWkspc/workspace5/remoteDebugger-start-with-ptvsd.re-attach.py"}, "line": 7, "column": 1}, {"id": 2, "name": "execfile", "source": {"path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/pydevd/_pydev_imps/_pydev_execfile.py"}, "line": 25, "column": 1}, {"id": 3, "name": "run", "source": {"path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/pydevd/pydevd.py"}, "line": 1035, "column": 1}, {"id": 4, "name": "main", "source": {"path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/pydevd/pydevd.py"}, "line": 1628, "column": 1}, {"id": 5, "name": "_run", "source": {"path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/__main__.py"}, "line": 83, "column": 1}, {"id": 6, "name": "run_file", "source": {"path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/__main__.py"}, "line": 29, "column": 1}, {"id": 7, "name": "main", "source": {"path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/__main__.py"}, "line": 253, "column": 1}, {"id": 8, "name": "", "source": {"path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/__main__.py"}, "line": 258, "column": 1}, {"id": 9, "name": "_run_code", "source": {"path": "/Users/donjayamanne/anaconda3/lib/python3.6/runpy.py"}, "line": 85, "column": 1}, {"id": 10, "name": "_run_module_as_main", "source": {"path": "/Users/donjayamanne/anaconda3/lib/python3.6/runpy.py"}, "line": 193, "column": 1}], "totalFrames": 10}}' Received {'type': 'request', 'seq': 7, 'command': 'setBreakpoints', 'arguments': {'lines': [], 'breakpoints': [], 'source': {'path': '/Users/donjayamanne/.vscode-insiders/extensions/pythonVSCode/src/testMultiRootWkspc/workspace5/remoteDebugger-start-with-ptvsd.re-attach.py'}}} Sent contentb'{"type": "response", "seq": 16, "request_seq": 7, "success": true, "command": "setBreakpoints", "message": "", "body": {"breakpoints": []}}' Received {'type': 'request', 'seq': 8, 'command': 'threads'} Sent contentb'{"type": "response", "seq": 17, "request_seq": 8, "success": true, "command": "threads", "message": "", "body": {"threads": [{"id": 1, "name": "MainThread"}]}}' Received {'type': 'request', 'seq': 9, 'command': 'continue', 'arguments': {'threadId': 1}} Sent contentb'{"type": "response", "seq": 18, "request_seq": 9, "success": true, "command": "continue", "message": "", "body": {}}' Sent contentb'{"type": "event", "seq": 19, "event": "continued", "body": {"threadId": 1}}' Received {'type': 'request', 'seq': 10, 'command': 'disconnect'} Sent contentb'{"type": "event", "seq": 20, "event": "terminated", "body": {}}' Sent contentb'{"type": "response", "seq": 21, "request_seq": 10, "success": true, "command": "disconnect", "message": "", "body": {}}'Sent contentb'{"type": "event", "seq": 0, "event": "output", "body": {"category": "telemetry", "output": "ptvsd", "data": {"version": "4.0.0a5"}}}'
Received {'type': 'request', 'seq': 2, 'command': 'attach', 'arguments': {'localRoot': '/Users/donjayamanne/.vscode-insiders/extensions/pythonVSCode/src/testMultiRootWkspc/workspace5', 'remoteRoot': '/Users/donjayamanne/.vscode-insiders/extensions/pythonVSCode/src/testMultiRootWkspc/workspace5', 'type': 'pythonExperimental', 'port': 9091, 'host': 'localhost', 'logToFile': True, 'debugOptions': ['RedirectOutput']}}
Sent contentb'{"type": "response", "seq": 1, "request_seq": 2, "success": true, "command": "attach", "message": "", "body": {}}'
Received {'type': 'request', 'seq': 1, 'command': 'initialize', 'arguments': {'adapterID': 'pythonExperimental', 'linesStartAt1': True, 'columnsStartAt1': True, 'supportsRunInTerminalRequest': True, 'pathFormat': 'path', 'supportsVariableType': True, 'supportsVariablePaging': True}}
Sent contentb'{"type": "response", "seq": 2, "request_seq": 1, "success": true, "command": "initialize", "message": "", "body": {"supportsExceptionInfoRequest": true, "supportsConfigurationDoneRequest": true, "supportsConditionalBreakpoints": true, "supportsSetVariable": true, "supportsExceptionOptions": true, "supportsEvaluateForHovers": true, "supportsValueFormattingOptions": true, "supportsSetExpression": true, "supportsModulesRequest": true, "exceptionBreakpointFilters": [{"filter": "raised", "label": "Raised Exceptions", "default": false}, {"filter": "uncaught", "label": "Uncaught Exceptions", "default": true}]}}'
Sent contentb'{"type": "event", "seq": 3, "event": "initialized", "body": {}}'
Received {'type': 'request', 'seq': 3, 'command': 'configurationDone'}
Sent contentb'{"type": "response", "seq": 4, "request_seq": 3, "success": true, "command": "configurationDone", "message": "", "body": {}}'
Received {'type': 'request', 'seq': 4, 'command': 'setExceptionBreakpoints', 'arguments': {'filters': []}}
Sent contentb'{"type": "response", "seq": 5, "request_seq": 4, "success": true, "command": "setExceptionBreakpoints", "message": "", "body": {}}'
Received {'type': 'request', 'seq': 5, 'command': 'setBreakpoints', 'arguments': {'lines': [7], 'breakpoints': [{'line': 7, 'column': 1}], 'source': {'path': '/Users/donjayamanne/.vscode-insiders/extensions/pythonVSCode/src/testMultiRootWkspc/workspace5/remoteDebugger-start-with-ptvsd.re-attach.py'}}}
Sent contentb'{"type": "response", "seq": 6, "request_seq": 5, "success": true, "command": "setBreakpoints", "message": "", "body": {"breakpoints": [{"id": 1, "verified": true, "line": 7}]}}'
Sent contentb'{"type": "event", "seq": 7, "event": "process", "body": {"name": "/Users/donjayamanne/.vscode-insiders/extensions/pythonVSCode/src/testMultiRootWkspc/workspace5/remoteDebugger-start-with-ptvsd.re-attach.py", "systemProcessId": 98365, "isLocalProcess": true, "startMethod": "attach"}}'
Received {'type': 'request', 'seq': 6, 'command': 'disconnect'}
Sent contentb'{"type": "event", "seq": 8, "event": "terminated", "body": {}}'
Sent contentb'{"type": "response", "seq": 9, "request_seq": 6, "success": true, "command": "disconnect", "message": "", "body": {}}'
Logs when it works (making threads request)
Sent contentb'{"type": "event", "seq": 0, "event": "output", "body": {"category": "telemetry", "output": "ptvsd", "data": {"version": "4.0.0a5"}}}' Received {'type': 'request', 'seq': 2, 'command': 'attach', 'arguments': {'localRoot': '/Users/donjayamanne/.vscode-insiders/extensions/pythonVSCode/src/testMultiRootWkspc/workspace5', 'remoteRoot': '/Users/donjayamanne/.vscode-insiders/extensions/pythonVSCode/src/testMultiRootWkspc/workspace5', 'type': 'pythonExperimental', 'port': 9091, 'host': 'localhost', 'logToFile': True, 'debugOptions': ['RedirectOutput']}} Sent contentb'{"type": "response", "seq": 1, "request_seq": 2, "success": true, "command": "attach", "message": "", "body": {}}' Received {'type': 'request', 'seq': 1, 'command': 'initialize', 'arguments': {'adapterID': 'pythonExperimental', 'linesStartAt1': True, 'columnsStartAt1': True, 'supportsRunInTerminalRequest': True, 'pathFormat': 'path', 'supportsVariableType': True, 'supportsVariablePaging': True}} Sent contentb'{"type": "response", "seq": 2, "request_seq": 1, "success": true, "command": "initialize", "message": "", "body": {"supportsExceptionInfoRequest": true, "supportsConfigurationDoneRequest": true, "supportsConditionalBreakpoints": true, "supportsSetVariable": true, "supportsExceptionOptions": true, "supportsEvaluateForHovers": true, "supportsValueFormattingOptions": true, "supportsSetExpression": true, "supportsModulesRequest": true, "exceptionBreakpointFilters": [{"filter": "raised", "label": "Raised Exceptions", "default": false}, {"filter": "uncaught", "label": "Uncaught Exceptions", "default": true}]}}' Sent contentb'{"type": "event", "seq": 3, "event": "initialized", "body": {}}' Received {'type': 'request', 'seq': 3, 'command': 'configurationDone'} Sent contentb'{"type": "response", "seq": 4, "request_seq": 3, "success": true, "command": "configurationDone", "message": "", "body": {}}' Received {'type': 'request', 'seq': 4, 'command': 'threads'} Sent contentb'{"type": "event", "seq": 5, "event": "thread", "body": {"reason": "started", "threadId": 1}}' Sent contentb'{"type": "response", "seq": 6, "request_seq": 4, "success": true, "command": "threads", "message": "", "body": {"threads": [{"id": 1, "name": "MainThread"}]}}' Received {'type': 'request', 'seq': 5, 'command': 'setExceptionBreakpoints', 'arguments': {'filters': []}} Sent contentb'{"type": "response", "seq": 7, "request_seq": 5, "success": true, "command": "setExceptionBreakpoints", "message": "", "body": {}}' Received {'type': 'request', 'seq': 6, 'command': 'setBreakpoints', 'arguments': {'lines': [7], 'breakpoints': [{'line': 7, 'column': 1}], 'source': {'path': '/Users/donjayamanne/.vscode-insiders/extensions/pythonVSCode/src/testMultiRootWkspc/workspace5/remoteDebugger-start-with-ptvsd.re-attach.py'}}} Sent contentb'{"type": "response", "seq": 8, "request_seq": 6, "success": true, "command": "setBreakpoints", "message": "", "body": {"breakpoints": [{"id": 1, "verified": true, "line": 7}]}}' Sent contentb'{"type": "event", "seq": 9, "event": "process", "body": {"name": "/Users/donjayamanne/.vscode-insiders/extensions/pythonVSCode/src/testMultiRootWkspc/workspace5/remoteDebugger-start-with-ptvsd.re-attach.py", "systemProcessId": 98926, "isLocalProcess": true, "startMethod": "attach"}}' Sent contentb'{"type": "event", "seq": 10, "event": "thread", "body": {"reason": "started", "threadId": 1}}' Sent contentb'{"type": "event", "seq": 11, "event": "stopped", "body": {"reason": "breakpoint", "threadId": 1, "text": null, "description": null}}' Received {'type': 'request', 'seq': 7, 'command': 'stackTrace', 'arguments': {'threadId': 1}} Sent contentb'{"type": "event", "seq": 12, "event": "module", "body": {"reason": "new", "module": {"id": 1, "package": null, "path": "/Users/donjayamanne/.vscode-insiders/extensions/pythonVSCode/src/testMultiRootWkspc/workspace5/remoteDebugger-start-with-ptvsd.re-attach.py", "name": "__main__"}}}' Sent contentb'{"type": "event", "seq": 13, "event": "module", "body": {"reason": "new", "module": {"id": 2, "package": "_pydev_imps", "path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/pydevd/_pydev_imps/_pydev_execfile.py", "name": "_pydev_imps._pydev_execfile"}}}' Sent contentb'{"type": "event", "seq": 14, "event": "module", "body": {"reason": "new", "module": {"id": 3, "package": "", "path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/pydevd/pydevd.py", "name": "pydevd", "version": "1.1.1"}}}' Sent contentb'{"type": "event", "seq": 15, "event": "module", "body": {"reason": "new", "module": {"id": 4, "package": "ptvsd", "path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/__main__.py", "name": "__main__", "version": "4.0.0a5"}}}' Sent contentb'{"type": "event", "seq": 16, "event": "module", "body": {"reason": "new", "module": {"id": 5, "package": "", "path": "/Users/donjayamanne/anaconda3/lib/python3.6/runpy.py", "name": "runpy"}}}' Sent contentb'{"type": "response", "seq": 17, "request_seq": 7, "success": true, "command": "stackTrace", "message": "", "body": {"stackFrames": [{"id": 1, "name": "", "source": {"path": "/Users/donjayamanne/.vscode-insiders/extensions/pythonVSCode/src/testMultiRootWkspc/workspace5/remoteDebugger-start-with-ptvsd.re-attach.py"}, "line": 7, "column": 1}, {"id": 2, "name": "execfile", "source": {"path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/pydevd/_pydev_imps/_pydev_execfile.py"}, "line": 25, "column": 1}, {"id": 3, "name": "run", "source": {"path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/pydevd/pydevd.py"}, "line": 1035, "column": 1}, {"id": 4, "name": "main", "source": {"path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/pydevd/pydevd.py"}, "line": 1628, "column": 1}, {"id": 5, "name": "_run", "source": {"path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/__main__.py"}, "line": 83, "column": 1}, {"id": 6, "name": "run_file", "source": {"path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/__main__.py"}, "line": 29, "column": 1}, {"id": 7, "name": "main", "source": {"path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/__main__.py"}, "line": 253, "column": 1}, {"id": 8, "name": "", "source": {"path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/__main__.py"}, "line": 258, "column": 1}, {"id": 9, "name": "_run_code", "source": {"path": "/Users/donjayamanne/anaconda3/lib/python3.6/runpy.py"}, "line": 85, "column": 1}, {"id": 10, "name": "_run_module_as_main", "source": {"path": "/Users/donjayamanne/anaconda3/lib/python3.6/runpy.py"}, "line": 193, "column": 1}], "totalFrames": 10}}' Received {'type': 'request', 'seq': 8, 'command': 'setBreakpoints', 'arguments': {'lines': [], 'breakpoints': [], 'source': {'path': '/Users/donjayamanne/.vscode-insiders/extensions/pythonVSCode/src/testMultiRootWkspc/workspace5/remoteDebugger-start-with-ptvsd.re-attach.py'}}} Sent contentb'{"type": "response", "seq": 18, "request_seq": 8, "success": true, "command": "setBreakpoints", "message": "", "body": {"breakpoints": []}}' Received {'type': 'request', 'seq': 9, 'command': 'threads'} Sent contentb'{"type": "response", "seq": 19, "request_seq": 9, "success": true, "command": "threads", "message": "", "body": {"threads": [{"id": 1, "name": "MainThread"}]}}' Received {'type': 'request', 'seq': 10, 'command': 'continue', 'arguments': {'threadId': 1}} Sent contentb'{"type": "response", "seq": 20, "request_seq": 10, "success": true, "command": "continue", "message": "", "body": {}}' Received {'type': 'request', 'seq': 11, 'command': 'disconnect'} Sent contentb'{"type": "event", "seq": 21, "event": "terminated", "body": {}}' Sent contentb'{"type": "response", "seq": 22, "request_seq": 11, "success": true, "command": "disconnect", "message": "", "body": {}}'Sent contentb'{"type": "event", "seq": 0, "event": "output", "body": {"category": "telemetry", "output": "ptvsd", "data": {"version": "4.0.0a5"}}}'
Received {'type': 'request', 'seq': 2, 'command': 'attach', 'arguments': {'localRoot': '/Users/donjayamanne/.vscode-insiders/extensions/pythonVSCode/src/testMultiRootWkspc/workspace5', 'remoteRoot': '/Users/donjayamanne/.vscode-insiders/extensions/pythonVSCode/src/testMultiRootWkspc/workspace5', 'type': 'pythonExperimental', 'port': 9091, 'host': 'localhost', 'logToFile': True, 'debugOptions': ['RedirectOutput']}}
Sent contentb'{"type": "response", "seq": 1, "request_seq": 2, "success": true, "command": "attach", "message": "", "body": {}}'
Received {'type': 'request', 'seq': 1, 'command': 'initialize', 'arguments': {'adapterID': 'pythonExperimental', 'linesStartAt1': True, 'columnsStartAt1': True, 'supportsRunInTerminalRequest': True, 'pathFormat': 'path', 'supportsVariableType': True, 'supportsVariablePaging': True}}
Sent contentb'{"type": "response", "seq": 2, "request_seq": 1, "success": true, "command": "initialize", "message": "", "body": {"supportsExceptionInfoRequest": true, "supportsConfigurationDoneRequest": true, "supportsConditionalBreakpoints": true, "supportsSetVariable": true, "supportsExceptionOptions": true, "supportsEvaluateForHovers": true, "supportsValueFormattingOptions": true, "supportsSetExpression": true, "supportsModulesRequest": true, "exceptionBreakpointFilters": [{"filter": "raised", "label": "Raised Exceptions", "default": false}, {"filter": "uncaught", "label": "Uncaught Exceptions", "default": true}]}}'
Sent contentb'{"type": "event", "seq": 3, "event": "initialized", "body": {}}'
Received {'type': 'request', 'seq': 3, 'command': 'configurationDone'}
Sent contentb'{"type": "response", "seq": 4, "request_seq": 3, "success": true, "command": "configurationDone", "message": "", "body": {}}'
Received {'type': 'request', 'seq': 4, 'command': 'threads'}
Sent contentb'{"type": "event", "seq": 5, "event": "thread", "body": {"reason": "started", "threadId": 1}}'
Sent contentb'{"type": "response", "seq": 6, "request_seq": 4, "success": true, "command": "threads", "message": "", "body": {"threads": [{"id": 1, "name": "MainThread"}]}}'
Received {'type': 'request', 'seq': 5, 'command': 'setExceptionBreakpoints', 'arguments': {'filters': []}}
Sent contentb'{"type": "response", "seq": 7, "request_seq": 5, "success": true, "command": "setExceptionBreakpoints", "message": "", "body": {}}'
Received {'type': 'request', 'seq': 6, 'command': 'setBreakpoints', 'arguments': {'lines': [7], 'breakpoints': [{'line': 7, 'column': 1}], 'source': {'path': '/Users/donjayamanne/.vscode-insiders/extensions/pythonVSCode/src/testMultiRootWkspc/workspace5/remoteDebugger-start-with-ptvsd.re-attach.py'}}}
Sent contentb'{"type": "response", "seq": 8, "request_seq": 6, "success": true, "command": "setBreakpoints", "message": "", "body": {"breakpoints": [{"id": 1, "verified": true, "line": 7}]}}'
Sent contentb'{"type": "event", "seq": 9, "event": "process", "body": {"name": "/Users/donjayamanne/.vscode-insiders/extensions/pythonVSCode/src/testMultiRootWkspc/workspace5/remoteDebugger-start-with-ptvsd.re-attach.py", "systemProcessId": 98926, "isLocalProcess": true, "startMethod": "attach"}}'
Sent contentb'{"type": "event", "seq": 10, "event": "stopped", "body": {"reason": "breakpoint", "threadId": 1, "text": null, "description": null}}'
Received {'type': 'request', 'seq': 7, 'command': 'stackTrace', 'arguments': {'threadId': 1}}
Sent contentb'{"type": "event", "seq": 11, "event": "module", "body": {"reason": "new", "module": {"id": 1, "package": null, "path": "/Users/donjayamanne/.vscode-insiders/extensions/pythonVSCode/src/testMultiRootWkspc/workspace5/remoteDebugger-start-with-ptvsd.re-attach.py", "name": "main"}}}'
Sent contentb'{"type": "event", "seq": 12, "event": "module", "body": {"reason": "new", "module": {"id": 2, "package": "_pydev_imps", "path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/pydevd/_pydev_imps/_pydev_execfile.py", "name": "_pydev_imps._pydev_execfile"}}}'
Sent contentb'{"type": "event", "seq": 13, "event": "module", "body": {"reason": "new", "module": {"id": 3, "package": "", "path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/pydevd/pydevd.py", "name": "pydevd", "version": "1.1.1"}}}'
Sent contentb'{"type": "event", "seq": 14, "event": "module", "body": {"reason": "new", "module": {"id": 4, "package": "ptvsd", "path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/main.py", "name": "main", "version": "4.0.0a5"}}}'
Sent contentb'{"type": "event", "seq": 15, "event": "module", "body": {"reason": "new", "module": {"id": 5, "package": "", "path": "/Users/donjayamanne/anaconda3/lib/python3.6/runpy.py", "name": "runpy"}}}'
Sent contentb'{"type": "response", "seq": 16, "request_seq": 7, "success": true, "command": "stackTrace", "message": "", "body": {"stackFrames": [{"id": 1, "name": "", "source": {"path": "/Users/donjayamanne/.vscode-insiders/extensions/pythonVSCode/src/testMultiRootWkspc/workspace5/remoteDebugger-start-with-ptvsd.re-attach.py"}, "line": 7, "column": 1}, {"id": 2, "name": "execfile", "source": {"path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/pydevd/_pydev_imps/_pydev_execfile.py"}, "line": 25, "column": 1}, {"id": 3, "name": "run", "source": {"path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/pydevd/pydevd.py"}, "line": 1035, "column": 1}, {"id": 4, "name": "main", "source": {"path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/pydevd/pydevd.py"}, "line": 1628, "column": 1}, {"id": 5, "name": "_run", "source": {"path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/main.py"}, "line": 83, "column": 1}, {"id": 6, "name": "run_file", "source": {"path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/main.py"}, "line": 29, "column": 1}, {"id": 7, "name": "main", "source": {"path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/main.py"}, "line": 253, "column": 1}, {"id": 8, "name": "", "source": {"path": "/Users/donjayamanne/Desktop/Development/vscode/ptvsd/ptvsd/main.py"}, "line": 258, "column": 1}, {"id": 9, "name": "_run_code", "source": {"path": "/Users/donjayamanne/anaconda3/lib/python3.6/runpy.py"}, "line": 85, "column": 1}, {"id": 10, "name": "_run_module_as_main", "source": {"path": "/Users/donjayamanne/anaconda3/lib/python3.6/runpy.py"}, "line": 193, "column": 1}], "totalFrames": 10}}'
Received {'type': 'request', 'seq': 8, 'command': 'setBreakpoints', 'arguments': {'lines': [], 'breakpoints': [], 'source': {'path': '/Users/donjayamanne/.vscode-insiders/extensions/pythonVSCode/src/testMultiRootWkspc/workspace5/remoteDebugger-start-with-ptvsd.re-attach.py'}}}
Sent contentb'{"type": "response", "seq": 17, "request_seq": 8, "success": true, "command": "setBreakpoints", "message": "", "body": {"breakpoints": []}}'
Received {'type': 'request', 'seq': 9, 'command': 'threads'}
Sent contentb'{"type": "response", "seq": 18, "request_seq": 9, "success": true, "command": "threads", "message": "", "body": {"threads": [{"id": 1, "name": "MainThread"}]}}'
Received {'type': 'request', 'seq': 10, 'command': 'continue', 'arguments': {'threadId': 1}}
Sent contentb'{"type": "response", "seq": 19, "request_seq": 10, "success": true, "command": "continue", "message": "", "body": {}}'