Skip to content

waitOnNormalExit debugOption missing / not working #2840

@MrAlexBailey

Description

@MrAlexBailey

Environment data

  • VS Code version: 1.28.0
  • Extension version (available under the Extensions sidebar): 2018.9.0
  • OS and version: Windows 7
  • Python version (& distribution if applicable, e.g. Anaconda): 2.7.15
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Relevant/affected Python packages and their versions: N/A

Actual behavior

Running debugger does not wait on exit and instantly closes after the file finishes running.

Expected behavior

Debugger would wait on exit so that debug console could be used to evaluate variables in the file that was previously run.

Steps to reproduce:

  1. Create basic python script:
    foo = True
    bar = False

  2. Do not use any breakpoints and run debugger

  3. Attempt to evaluate print foo in the debug console

  4. Console warns: "Please start a debug session to evaluate"

image

image

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

Starting Microsoft Python language server.

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

log.ts:171   ERR Cannot read property 'sendRequest' of null: Error: Cannot read property 'sendRequest' of null
    at t.handleErrorResponse (file:///C:/Users/Alex/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:2606:480)
    at file:///C:/Users/Alex/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:2605:928
    at n.Class.derive._oncancel.then (file:///C:/Users/Alex/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:166:736)
    at t.send (file:///C:/Users/Alex/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:2605:859)
    at t.threads (file:///C:/Users/Alex/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:2603:565)
    at e.fetchThreads (file:///C:/Users/Alex/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:2969:99)
    at e.runner (file:///C:/Users/Alex/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:2970:209)
    at e.doRun (file:///C:/Users/Alex/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:205:434)
    at e.onTimeout (file:///C:/Users/Alex/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:205:391)
errors.ts:48 WARNING: Promise with no error callback:464
errors.ts:49 {exception: null, error: Error: Cannot read property 'sendRequest' of null
    at t.handleErrorResponse (file:///C:/Users/ab6…, promise: n.C…s.d…e.cancel, handler: undefined, id: 464, …}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions