429 lines
14 KiB
JSON
429 lines
14 KiB
JSON
// This is the .vscode/launch.json file that I use when debugging.
|
|
// Make sure you select the correct debug target in the drop-down at the top of the Debug tab.
|
|
// The are launch targets for debugging and testing all major c++ components of PiPedal.
|
|
// Copy or merge these targets into your own .vscode/launch.json file, which is
|
|
// deliberate ignored by git.
|
|
|
|
{
|
|
// Use IntelliSense to learn about possible attributes.
|
|
// Hover to view descriptions of existing attributes.
|
|
// For more information, visicat t: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
"name": "(gdb) generic",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
// Resolved by CMake Tools:
|
|
"program": "${command:cmake.launchTargetPath}",
|
|
"args": [
|
|
"[ProfileThumbnails]"
|
|
],
|
|
"stopAtEntry": false,
|
|
"cwd": "${workspaceFolder}",
|
|
"environment": [
|
|
{
|
|
"name": "PATH",
|
|
"value": "$PATH:${command:cmake.launchTargetDirectory}"
|
|
}
|
|
],
|
|
"externalConsole": false,
|
|
"MIMode": "gdb",
|
|
"setupCommands": [
|
|
{
|
|
"description": "Enable pretty-printing for gdb",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "(gdb) external console",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
// Resolved by CMake Tools:
|
|
"program": "${command:cmake.launchTargetPath}",
|
|
"args": [ ],
|
|
"stopAtEntry": false,
|
|
"cwd": "${workspaceFolder}",
|
|
"environment": [
|
|
{
|
|
"name": "PATH",
|
|
"value": "$PATH:${command:cmake.launchTargetDirectory}"
|
|
}
|
|
],
|
|
"externalConsole": true,
|
|
"MIMode": "gdb",
|
|
"setupCommands": [
|
|
{
|
|
"description": "Enable pretty-printing for gdb",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "(gdb) pipedal_nm_p2pd",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
// Resolved by CMake Tools:
|
|
"program": "${command:cmake.launchTargetPath}",
|
|
"args": [
|
|
"--loglevel",
|
|
"trace",
|
|
"--systemd-console"
|
|
],
|
|
"stopAtEntry": false,
|
|
"cwd": "${workspaceFolder}",
|
|
"environment": [
|
|
{
|
|
"name": "PATH",
|
|
"value": "$PATH:${command:cmake.launchTargetDirectory}"
|
|
}
|
|
],
|
|
"externalConsole": false,
|
|
"MIMode": "gdb",
|
|
"setupCommands": [
|
|
{
|
|
"description": "Enable pretty-printing for gdb",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": true
|
|
}
|
|
]
|
|
},
|
|
|
|
{
|
|
"name": "(gdb) pipedald",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
// Resolved by CMake Tools:
|
|
"program": "${command:cmake.launchTargetPath}",
|
|
"args": [ "/etc/pipedal/config", "${workspaceFolder}/vite/dist", "-port", "0.0.0.0:8080", "-log-level","debug" ],
|
|
"stopAtEntry": false,
|
|
"cwd": "${workspaceFolder}",
|
|
"environment": [
|
|
{
|
|
"name": "PATH",
|
|
"value": "$PATH:${command:cmake.launchTargetDirectory}"
|
|
},
|
|
{
|
|
"name": "LD_LIBRARY_PATH",
|
|
"value": "/usr/local/lib/aarch64-linux-gnu"
|
|
}
|
|
],
|
|
"externalConsole": false,
|
|
"MIMode": "gdb",
|
|
"setupCommands": [
|
|
{
|
|
"description": "Enable pretty-printing for gdb",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": true
|
|
}
|
|
]
|
|
},
|
|
|
|
{
|
|
"name": "(gdb) pipedaltest Launch",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
// Resolved by CMake Tools:
|
|
"program": "${command:cmake.launchTargetPath}",
|
|
|
|
"args": [
|
|
//"[Dev]" -- all dev-machine tests.
|
|
//"[json_variants]" // subtest of your choice, or none to run all of the tests.
|
|
//"[inverting_mutex_test]"
|
|
// "[utf8_to_utf32]"
|
|
//"[pipedal_alsa_test]"
|
|
// "[wifi_channels_test]"
|
|
// "[locale]"
|
|
//"[mod_gui_init]"
|
|
"[mod_gui_templates]"
|
|
],
|
|
|
|
"stopAtEntry": false,
|
|
"cwd": "${workspaceFolder}",
|
|
"environment": [
|
|
{
|
|
"name": "PATH",
|
|
"value": "$PATH:${command:cmake.launchTargetDirectory}"
|
|
},
|
|
{
|
|
"name": "OTHER_VALUE",
|
|
"value": "Something something"
|
|
}
|
|
],
|
|
"externalConsole": false,
|
|
"MIMode": "gdb",
|
|
"setupCommands": [
|
|
{
|
|
"description": "Enable pretty-printing for gdb",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "(gdb) jsonTest Launch",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
// Resolved by CMake Tools:
|
|
"program": "${command:cmake.launchTargetPath}",
|
|
|
|
"args": [
|
|
//"[Dev]" -- all dev-machine tests.
|
|
//"[promise]" // subtest of your choice, or none to run all of the tests.
|
|
"[json_variants]"
|
|
],
|
|
|
|
"stopAtEntry": false,
|
|
"cwd": "${workspaceFolder}",
|
|
"environment": [
|
|
{
|
|
"name": "PATH",
|
|
"value": "$PATH:${command:cmake.launchTargetDirectory}"
|
|
},
|
|
{
|
|
"name": "OTHER_VALUE",
|
|
"value": "Something something"
|
|
}
|
|
],
|
|
"externalConsole": false,
|
|
"MIMode": "gdb",
|
|
"setupCommands": [
|
|
{
|
|
"description": "Enable pretty-printing for gdb",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": true
|
|
}
|
|
]
|
|
},
|
|
|
|
|
|
{
|
|
"name": "(gdb) pipedal_latency_test Launch",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
// Resolved by CMake Tools:
|
|
"program": "${command:cmake.launchTargetPath}",
|
|
|
|
"args": [ "--rate", "48000", "hw:KATANA", "-i","0,1","-o","2,3" ],
|
|
|
|
"stopAtEntry": false,
|
|
"cwd": "${workspaceFolder}",
|
|
"environment": [
|
|
{
|
|
"name": "PATH",
|
|
"value": "$PATH:${command:cmake.launchTargetDirectory}"
|
|
},
|
|
{
|
|
"name": "OTHER_VALUE",
|
|
"value": "Something something"
|
|
}
|
|
],
|
|
"externalConsole": false,
|
|
"MIMode": "gdb",
|
|
"setupCommands": [
|
|
{
|
|
"description": "Enable pretty-printing for gdb",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "(gdb) pipedalProfilePlugin",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
// Resolved by CMake Tools:
|
|
"program": "${command:cmake.launchTargetPath}",
|
|
|
|
"args": [
|
|
"--no-profile", "-w",
|
|
// "TooB NAM"
|
|
"--preset-file", "/tmp/namPreset.preset"
|
|
],
|
|
|
|
"stopAtEntry": false,
|
|
"cwd": "${workspaceFolder}",
|
|
"environment": [
|
|
{
|
|
"name": "PATH",
|
|
"value": "$PATH:${command:cmake.launchTargetDirectory}"
|
|
},
|
|
{
|
|
"name": "OTHER_VALUE",
|
|
"value": "Something something"
|
|
}
|
|
],
|
|
"externalConsole": false,
|
|
"MIMode": "gdb",
|
|
"setupCommands": [
|
|
{
|
|
"description": "Enable pretty-printing for gdb",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "(gdb) pipedalconfigX",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
// Resolved by CMake Tools:
|
|
"program": "/home/robin/src/pipedal/build/src/pipedalconfig",
|
|
"args": [
|
|
"--nosudo", // run without sudo (which will fail because of perms, but allow us to debug deeper into install code.)
|
|
//"--get-current-port"
|
|
// "--uninstall"
|
|
//"--enable-p2p" , "CA", "PiPedalTest","12345678","14"
|
|
// "--alsa-devices"
|
|
"--prefix", "/usr",
|
|
"--install", "--port", "0"
|
|
],
|
|
"stopAtEntry": false,
|
|
"cwd": "${workspaceFolder}",
|
|
"environment": [
|
|
{
|
|
"name": "PATH",
|
|
"value": "$PATH:${command:cmake.launchTargetDirectory}"
|
|
},
|
|
{
|
|
"name": "ASAN_OPTIONS",
|
|
"value": "detect_leaks=0"
|
|
|
|
},
|
|
{
|
|
"name": "OTHER_VALUE",
|
|
"value": "Something something"
|
|
}
|
|
],
|
|
"externalConsole": false,
|
|
"MIMode": "gdb",
|
|
"setupCommands": [
|
|
{
|
|
"description": "Enable pretty-printing for gdb",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": true
|
|
}
|
|
]
|
|
},
|
|
|
|
|
|
{
|
|
"name": "(gdb) processCopyrights Launch",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
// Resolved by CMake Tools:
|
|
"program": "${command:cmake.launchTargetPath}",
|
|
///"args": [ "[lv2host_leak]" ],
|
|
|
|
"args": [
|
|
"--projectCopyright",
|
|
"debian/copyright",
|
|
"--output",
|
|
"/tmp/copyrights.txt",
|
|
"liblilv-0-0", "lv2-dev", "libsdbus-c++-dev", "librsvg2-2", "libpango-1.0-0", "libx11-6", "libxrandr2"
|
|
|
|
],
|
|
"stopAtEntry": false,
|
|
"cwd": "${workspaceFolder}",
|
|
"environment": [
|
|
{
|
|
"name": "PATH",
|
|
"value": "$PATH:${command:cmake.launchTargetDirectory}"
|
|
},
|
|
{
|
|
"name": "ASAN_OPTIONS",
|
|
"value": "detect_leaks=0"
|
|
|
|
},
|
|
|
|
{
|
|
"name": "OTHER_VALUE",
|
|
"value": "Something something"
|
|
}
|
|
],
|
|
"externalConsole": false,
|
|
"MIMode": "gdb",
|
|
"setupCommands": [
|
|
{
|
|
"description": "Enable pretty-printing for gdb",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "(gdb) pipedal_alsa_check",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
// Resolved by CMake Tools:
|
|
"program": "${command:cmake.launchTargetPath}",
|
|
"args": [
|
|
//"hw:M2"
|
|
],
|
|
"stopAtEntry": false,
|
|
"cwd": "${workspaceFolder}",
|
|
"environment": [
|
|
{
|
|
"name": "PATH",
|
|
"value": "$PATH:${command:cmake.launchTargetDirectory}"
|
|
}
|
|
],
|
|
"externalConsole": false,
|
|
"MIMode": "gdb",
|
|
"setupCommands": [
|
|
{
|
|
"description": "Enable pretty-printing for gdb",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": true
|
|
}
|
|
]
|
|
},
|
|
|
|
{
|
|
"name": "(gdb) pipedal_p2pd",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
// Resolved by CMake Tools:
|
|
"program": "${command:cmake.launchTargetPath}",
|
|
"args": [
|
|
"--config-file", "/etc/pipedal/config/pipedal_p2pd.conf"
|
|
, "--trace-messages", "--log-level", "debug",
|
|
|
|
],
|
|
"stopAtEntry": false,
|
|
"cwd": "${workspaceFolder}",
|
|
"environment": [
|
|
{
|
|
"name": "PATH",
|
|
"value": "$PATH:${command:cmake.launchTargetDirectory}"
|
|
},
|
|
{
|
|
"name": "ASAN_OPTIONS",
|
|
"value": "detect_leaks=0"
|
|
|
|
},
|
|
{
|
|
"name": "OTHER_VALUE",
|
|
"value": "Something something"
|
|
}
|
|
],
|
|
"externalConsole": false,
|
|
"MIMode": "gdb",
|
|
"setupCommands": [
|
|
{
|
|
"description": "Enable pretty-printing for gdb",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": true
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |