vscode-cpptools
vscode-cpptools copied to clipboard
[LLDB] Attach will cause debuggee process continue to run to exit
Internal bug id: 235277 Configuration:
-
VSCode(Stable) + cpptools(0.7.1) + LLDB(3.8.0)
-
Sample code attached.
Steps to repro:
-
Compile the sample code: clang++ -g a.cpp b.cpp c.cpp -lpthread
-
Run the debuggee app: ./a.out
-
Open the sample code folder in vsocde.
-
Set a bp in line 44 in a.cpp
-
Add the process ID of the current app process in launch.json
-
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.