diff --git a/.vscode/launch.json b/.vscode/launch.json index e110f95..244d1c7 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,6 +4,31 @@ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ + { + "name": "(gdb) Attach", + "type": "cppdbg", + "request": "attach", + "program": "${env:HOME}/wpilib/2024/jdk/bin/java", + "windows": { + "program": "${env:PUBLIC}\\wpilib\\2024\\jdk\\bin\\java" + }, + "sourceFileMap": { + "/work/": "${input:wpilibSrcPath}/" + }, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + }, + { + "description": "Set Disassembly Flavor to Intel", + "text": "-gdb-set disassembly-flavor intel", + "ignoreFailures": true + } + ] + }, { "type": "java", "name": "Launch Extern Controller", @@ -33,5 +58,13 @@ "args": "--no-robot-code", "cwd": "${workspaceFolder}/example/Webots/controllers/DeepBlueSim" } + ], + "inputs": [ + { + "id": "wpilibSrcPath", + "type": "promptString", + "description": "The path to the wpilib source code (no trailing slash)", + "default": "${workspaceFolder}/../allwpilib" + } ] } \ No newline at end of file