Open Rojetto opened 1 year ago
There are multiple reports on that. You can find them and link them here.
Just install CodeLLDB.
https://github.com/microsoft/vscode-cpptools/issues/7240
https://github.com/microsoft/vscode-cpptools/issues/9831 https://github.com/lldb-tools/lldb-mi/issues/101
Thanks, CodeLLDB seems to work much better even in normal operation.
Type: Bug
While working on a project using SDL, I ran into a weird issue where after setting a breakpoint, the VS Code debugger (using lldb) would stop at the breakpoint and show the stack trace, but couldn't load variables or step. The program then also froze, even after stopping the debugger and had to be force quit. I reduced it to the following minimal example:
main.cpp
CMakeLists.txt
launch.json
c_cpp_properties.json
If I set a breakpoint in the
main
function, VS Code will break there, but then something crashes internally. If you remove either themap
orSDL_Init
, the problem disappears. I also tried debugging manually from the command line with LLDB, but there the issue doesn't appear.Extension version: 1.15.4 VS Code version: Code 1.78.2 (Universal) (b3e4e68a0bc097f0ae7907b217c1119af9e03435, 2023-05-10T14:44:45.204Z) OS version: Darwin arm64 22.4.0 Modes: Sandboxed: Yes
System Info
|Item|Value| |---|---| |CPUs|Apple M2 (8 x 24)| |GPU Status|2d_canvas: enabledcanvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|2, 2, 2| |Memory (System)|8.00GB (0.08GB free)| |Process Argv|--crash-reporter-id 87b0c4e4-4f3b-445b-9f36-34444426ed13| |Screen Reader|no| |VM|0%|
A/B Experiments
``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492cf:30256860 vstes627:30244334 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593:30376534 pythonvs932:30410667 cppdebug:30492333 vsclangdc:30486549 c4g48928:30535728 dsvsc012:30540252 pynewext54:30695312 azure-dev_surveyone:30548225 vscccc:30610679 3biah626:30602489 pyind779:30671433 89544117:30613380 pythonsymbol12:30671437 a9j8j154:30646983 showlangstatbar:30737416 vsctsb:30705553 azdwalk:30721579 pythonms35:30701012 pythonfmttext:30731395 fixhidewlkth:30730051 pythongtdpathcf:30739705 ```