Skip to content

DebugConfiguration.noDebug is sticky #99576

@hyangah

Description

@hyangah

Version: 1.46.0-insider
Commit: b1ef2bf
Date: 2020-06-05T12:27:56.662Z (2 days ago)
Electron: 7.3.1
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 18.7.0

Running "Run > Start Debugging" after running "Run > Start Without Debugging" does not start debugging. Close inspection revealed that noDebug of the DebugConfiguration passed to DebugConfigurationProvider's resolveDebugConfiguration remains true.

Steps to Reproduce:

  1. Clone the vscode debug adapter sample
    git clone https://github.com/microsoft/vscode-mock-debug

  2. Build the mock extension npm install.

  3. Create a breakpoint at extension.ts:105

  4. Launch the extension (F5)

  5. Open a readme.md in the extension development host.

  6. "Run > Start Without Debugging" (Ctrl+F5) from the extension development host, and select Mock Debug.

  7. See the breakpoint hit, and evaluate config.

Screen Shot 2020-06-07 at 7 00 04 PM

  1. Go back to the extension development host, and stop the task.

  2. "Run > Start Debugging" (F5) from the extension development host this time, and select Mock Debug.

  3. See the breakpoint hit, and evaluate 'config'.

Screen Shot 2020-06-07 at 7 05 04 PM

You can see noDebug (the second row) is set true even though it's requested to debug.

Actually, I see that if I start with F5 first, and try Ctrl+F5 later, the second run receives DebugConfiguration without noDebug property. So, it seems like the value chosen in the very first run remains unchanged in the subsequent task runs.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugcandidateIssue identified as probable candidate for fixing in the next releasedebugDebug viewlet, configurations, breakpoints, adapter issuesinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions