C++ debugging with Visual Studio Code High Sierra


C++ debugging with Visual Studio Code High Sierra



I'm trying to get c++ debugging working on mac os high sierra. Here is my launch.json file. I not really sure how to get it running.


{
"version": "0.2.0",
"configurations": [

{
"name": "(lldb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "/Users/user/Desktop/VSCodeProjects/test",
"args": ,
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": ,
"externalConsole": true,
"MIMode": "lldb"
}
]
}



When I do hit the debug button Visual Studio Code will just show me the debug buttons and then will give me the following error message.


Loaded '/usr/lib/system/libsystem_networkextension.dylib'. Symbols loaded.
Loaded '/usr/lib/system/libsystem_notify.dylib'. Symbols loaded.
Loaded '/usr/lib/system/libsystem_sandbox.dylib'. Symbols loaded.
Loaded '/usr/lib/system/libsystem_secinit.dylib'. Symbols loaded.
Loaded '/usr/lib/system/libsystem_kernel.dylib'. Symbols loaded.
Loaded '/usr/lib/system/libsystem_platform.dylib'. Symbols loaded.
Loaded '/usr/lib/system/libsystem_pthread.dylib'. Symbols loaded.
Loaded '/usr/lib/system/libsystem_symptoms.dylib'. Symbols loaded.
Loaded '/usr/lib/system/libsystem_trace.dylib'. Symbols loaded.
Loaded '/usr/lib/system/libunwind.dylib'. Symbols loaded.
Loaded '/usr/lib/system/libxpc.dylib'. Symbols loaded.
Loaded '/usr/lib/closure/libclosured.dylib'. Symbols loaded.
Loaded '/usr/lib/libobjc.A.dylib'. Symbols loaded.
Loaded '/Users/jeffomidvaran/Desktop/VSCodeProjects/test'. Symbols loaded.
The program '/Users/user/Desktop/VSCodeProjects/test' has exited with code 0 (0x00000000).





What's in the program you're debugging? Does it just exit if you run it? Do you have any breakpoints set in the code?
– Retired Ninja
Jun 30 at 5:41





I do have breakpoints. I was just running a simple for loop with the breakpoint inside the loop
– code kid
Jun 30 at 6:23









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Comments

Popular posts from this blog

paramiko-expect timeout is happening after executing the command

how to run turtle graphics in Colaboratory

Export result set on Dbeaver to CSV