Dear Mark,
I have not used Xcode for native debugging.
Instead, I use VSCode with:
- C++ plugin, but disabled intelli sense engine
- the clangd plugin with the executable pointed to the clangd in buildtools
- and LLDB used from VSCode
my workspace file looks like the following:
{
"launch": {
"version": "0.2.0",
"configurations": [
{
"name": "ccpdbg dart",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/xcodebuild/DebugARM64/dart",
"args": [
"--print-flow-graph",
"--print-flow-graph-filter=Ffi",
"--disassemble",
"${workspaceFolder}/tests/ffi/data_test.dart"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/xcodebuild/DebugARM64/",
"environment": [],
"externalConsole": false,
"MIMode": "lldb",
"sourceFileMap": {
"../../": "${workspaceFolder}/",
},
},
]
},
"folders": [
{
"path": "sdk"
}
],
"settings": {
"C_Cpp.intelliSenseEngine": "Disabled",
"clangd.path": "buildtools/mac-x64/clang/bin/clangd"
},
}
I'm on an M1 arm64, replace DebugARM64 with DebugX64 for an x64 machine.
The build is with tools/build.py as you have already discovered.
I hope this helps.
Kind regards,
Daco Harkes