microsoft / microsoft/vscode-cpptools

[Win10] After __debugbreak(), the debugger no longer works correctly

Open
#758 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

debugger
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Environment:

  • tool-chain: C++ tool-chain that comes with Visual Studio 2015.
  • VSCode 1.12.2
  • Windows 10.

Steps to reproduce:

  1. Add __debugBreak somewhere in your C++ code.
  2. Start a debugging session until the execution stops in the __debugBreak() call.
  3. From this moment on, try to go step-by-step in the code (using F10)

Expected result:
The debugger should step by step into the code, and the execution cursor (yellow arrow at the left side of the editor pane while in the Debugger view) should show the currently executed line.

Actual result:
The debugger goes step by step into the code, but the execution cursor disappears after the first F10 key-press. After this point you don't know where the execution cursor is.

Recovery:
The only way to recover from this is to look into the call-stack view, select the current thread, and double click the function at the top of the call-stack. After this action, the execution cursor reappears, but only until you press F10 again, when it disappears.

Mention:
This only happens after __debugBreak(). For a normal breakpoint added with F9 the debugger works correctly.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the listed Visual Studio 2015, VS Code 1.12.2, and Windows 10 environment using a C++ program containing __debugBreak(), then compare stepping with a normal F9 breakpoint. Trace the debugger's current-thread and execution-location updates after F10; done means the execution cursor remains visible and accurate after each step.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.