vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

[LLDB] Attach will cause debuggee process continue to run to exit

Open caslan opened this issue 9 years ago • 0 comments

Internal bug id: 235277 Configuration:

  1. VSCode(Stable) + cpptools(0.7.1) + LLDB(3.8.0)

  2. Sample code attached.

Steps to repro:

  1. Compile the sample code: clang++ -g a.cpp b.cpp c.cpp -lpthread

  2. Run the debuggee app: ./a.out

  3. Open the sample code folder in vsocde.

  4. Set a bp in line 44 in a.cpp

  5. Add the process ID of the current app process in launch.json

  6. Set debug type to be Attach then F5

Expected:

Debugging started and wait for an input.

Actual:

When attached, the process will continue to run without an input, then the process exitted and debugging stopped.

test (1).zip

caslan avatar Feb 18 '17 06:02 caslan