Skip to content

Debug adapter process has terminated unexpectedly #618

@ghost

Description

Environment data

VS Code version: 1.19.2
Python Extension version: 0.9.1
Python Version: 3.6.4
OS and version: Arch Linux(with testing repo)

Actual behavior

Debug adapter process has terminated unexpectedly.

Expected behavior

The debugging process should continue throughout the script execution.

Steps to reproduce:

  • Run loop with HTTP requests in Process(parallel requests) and output to the console for each HTTP request (print ("some information about the response")).
  • Use configuration for running:
{
            "name": "run.py",
            "type": "python",
            "request": "launch",
            "stopOnEntry": true,
            "pythonPath": "${config:python.pythonPath}",
            "program": "${workspaceFolder}/run.py",
            "cwd": "${workspaceFolder}",
            "env": {},
            "envFile": "${workspaceFolder}/.env",
            "debugOptions": [
                "RedirectOutput"
            ]
}

Logs

Output from Python output panel

Output from Console window (Help->Developer Tools menu)
image

/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.main.js:2744 Debug adapter process has terminated unexpectedly
e.doShow @ /opt/visual-studio-code/resources/app/out/vs/workbench/workbench.main.js:2744
messageService.ts:126 Debug adapter process has terminated unexpectedly
e.doShow @ messageService.ts:126
e.show @ messageService.ts:105
_.onServerExit @ rawDebugSession.ts:535
(anonymous) @ rawDebugSession.ts:449
emitTwo @ events.js:111
emit @ events.js:194
__dirname.ChildProcess._handle.onexit @ internal/child_process.js:215
console.ts:123 [Extension Host] (node:5326) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
t.log @ console.ts:123
t._logExtensionHostMessage @ extensionHost.ts:391
(anonymous) @ extensionHost.ts:211
emitTwo @ events.js:106
emit @ events.js:194
process.nextTick @ internal/child_process.js:766
_combinedTickCallback @ internal/process/next_tick.js:73
_tickCallback @ internal/process/next_tick.js:104
messageService.ts:126 Debug adapter process has terminated unexpectedly
e.doShow @ messageService.ts:126
e.show @ messageService.ts:105
_.onServerExit @ rawDebugSession.ts:535
(anonymous) @ rawDebugSession.ts:449
emitTwo @ events.js:111
emit @ events.js:194
__dirname.ChildProcess._handle.onexit @ internal/child_process.js:215

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-debuggingbugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions