I'm trying to get breakpoints to work in VSC when debugging a module's c++ on a mac.
my launch.json looks like this:
{
"version": "0.2.0",
"configurations": [
{
"name": "(lldb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/bin/godot.osx.tools.x86_64",
"args": [
"-v"
],
"internalConsoleOptions": "openOnSessionStart",
"stopAtEntry": true,
"cwd": "/Users/admin/Documents/Demeria/project",
"environment": [],
"externalConsole": true,
"MIMode": "lldb",
"visualizerFile": "${workspaceFolder}/modules/voxel/voxel.natvis",
"osx": {
"MIMode": "lldb"
}
I'm compiling Godot in the terminal w this command:
scons platform=osx arch=x86_64 --jobs=$(sysctl -n hw.logicalcpu)
VCS says it added my breakpoint in the console when I run it, however it complains:
Unable to open 'godot_main_osx.mm': Unable to read file '/Users/admin/Documents/godot-3.3.2-stable/platform/osx/godot_main_osx.mm' (Error: Unable to resolve non-existing file '/Users/admin/Documents/godot-3.3.2-stable/platform/osx/godot_main_osx.mm').