juce_cmake_vscode_example icon indicating copy to clipboard operation
juce_cmake_vscode_example copied to clipboard

crash in debug

Open piotrus04 opened this issue 1 year ago • 4 comments

Hi ! thanks a lot for your available template.

i had to modify the debug configuration to make it work. If not, the debug crash at init.

this one works well :

"configurations": [ { "name": "(lldb) Launch", "type": "cppdbg", "request": "launch", "program": "${command:cmake.launchTargetPath}", "args": [], "stopAtEntry": false, "cwd": "${workspaceFolder}", "environment": [ { "name": "PATH", "value": "$PATH:${command:cmake.launchTargetDirectory}" } ], "MIMode": "lldb", "logging": { "moduleLoad": false } } ]

thanks

piotrus04 avatar May 17 '24 00:05 piotrus04

Have you installed CodeLLDB extension? "type" : "cppdbg" means that you are trying to use built-in debugger.

tomoyanonymous avatar May 17 '24 02:05 tomoyanonymous

Screenshot 2024-05-17 at 12 08 12

Hi, if i use this :

"launch": { "configurations": [ { "type": "lldb", "request": "launch", "name": "CMake Debug", "program": "${command:cmake.launchTargetPath}", "args": [], "cwd": "${workspaceFolder}" }, ] } it doesn't work, it crash as shown on the screenshot

and CodeLLDB is well installed vscode

piotrus04 avatar May 17 '24 10:05 piotrus04

sorry, i am very new at programming in Juce, VSC and cmake.

piotrus04 avatar May 17 '24 10:05 piotrus04

It looks that the program is not crushed but just paused. If you click the skip to next breakpoint(▶︎) button, it will continue to run. I have encounterd similar issue several times. It seems that CoreAudio pauses debugger somehow on macOS and I could not solve the issue(just clicking skip button every time I launch the program).

tomoyanonymous avatar May 20 '24 09:05 tomoyanonymous