{ "version": "0.2.0", "configurations": [ { "name": "SITL (gz)", "type": "cppdbg", "request": "launch", "program": "${command:cmake.launchTargetPath}", "args": [ "${workspaceFolder}/ROMFS/px4fmu_common" ], "stopAtEntry": false, "cwd": "${command:cmake.buildDirectory}/rootfs", "environment": [ { "name": "PX4_SIM_MODEL", "value": "gz_${input:PX4_GZ_MODEL}" } ], "externalConsole": false, "postDebugTask": "gazebo kill", "linux": { "MIMode": "gdb", "externalConsole": false, "setupCommands": [ { "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true }, { "description": "PX4 ignore wq signals", "text": "handle SIGCONT nostop noprint nopass", "ignoreFailures": true } ] }, "osx": { "MIMode": "lldb", "externalConsole": true, "setupCommands": [ { "text": "pro hand -p true -s false -n false SIGCONT", } ] } }, { "name": "SITL (sihsim_quadx SYS_AUTOSTART=10040)", "type": "cppdbg", "request": "launch", "program": "${command:cmake.launchTargetPath}", "args": [ "${workspaceFolder}/ROMFS/px4fmu_common" ], "stopAtEntry": false, "cwd": "${command:cmake.buildDirectory}/rootfs", "environment": [ { "name": "PX4_SYS_AUTOSTART", "value": "10040" } ], "postDebugTask": "px4_sitl_cleanup", "linux": { "MIMode": "gdb", "setupCommands": [ { "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true }, { "description": "PX4 ignore wq signals", "text": "handle SIGCONT nostop noprint nopass", "ignoreFailures": true } ] }, "osx": { "MIMode": "lldb", "setupCommands": [ { "text": "pro hand -p true -s false -n false SIGCONT", } ] } }, { "name": "SITL (Gazebo Classic iris)", "type": "cppdbg", "request": "launch", "program": "${command:cmake.launchTargetPath}", "args": [ "${workspaceFolder}/ROMFS/px4fmu_common" ], "stopAtEntry": false, "cwd": "${command:cmake.buildDirectory}/rootfs", "environment": [ { "name": "PX4_SIM_MODEL", "value": "gazebo-classic_iris" } ], "externalConsole": false, "preLaunchTask": "gazebo-classic", "postDebugTask": "gazebo-classic kill", "linux": { "MIMode": "gdb", "externalConsole": false, "setupCommands": [ { "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true }, { "description": "PX4 ignore wq signals", "text": "handle SIGCONT nostop noprint nopass", "ignoreFailures": true } ] }, "osx": { "MIMode": "lldb", "externalConsole": true, "setupCommands": [ { "text": "pro hand -p true -s false -n false SIGCONT", } ] } }, { "name": "SITL (jmavsim_iris SYS_AUTOSTART=10017)", "type": "cppdbg", "request": "launch", "program": "${command:cmake.launchTargetPath}", "args": [ "${workspaceFolder}/ROMFS/px4fmu_common" ], "stopAtEntry": false, "cwd": "${command:cmake.buildDirectory}/rootfs", "environment": [ { "name": "PX4_SYS_AUTOSTART", "value": "10017" } ], "postDebugTask": "jmavsim kill", "linux": { "MIMode": "gdb", "setupCommands": [ { "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true }, { "description": "PX4 ignore wq signals", "text": "handle SIGCONT nostop noprint nopass", "ignoreFailures": true } ] }, "osx": { "MIMode": "lldb", "setupCommands": [ { "text": "pro hand -p true -s false -n false SIGCONT", } ] } }, { "name": "SITL (shell)", "type": "cppdbg", "request": "launch", "program": "${command:cmake.launchTargetPath}", "args": [ "${workspaceFolder}/ROMFS/px4fmu_common" ], "stopAtEntry": false, "cwd": "${command:cmake.buildDirectory}/rootfs", "environment": [ { "name": "PX4_SIM_MODEL", "value": "shell" } ], "linux": { "MIMode": "gdb", "externalConsole": false, "setupCommands": [ { "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true }, { "description": "PX4 ignore wq signals", "text": "handle SIGCONT nostop noprint nopass", "ignoreFailures": true } ] }, "osx": { "MIMode": "lldb", "externalConsole": true, "setupCommands": [ { "text": "pro hand -p true -s false -n false SIGCONT", } ] } } ], "inputs": [ { "type": "pickString", "id": "PX4_GZ_MODEL", "description": "GZ vehicle model", "options": [ "x500", "x500_depth", "x500_lidar", "rc_cessna", "standard_vtol", ], "default": "x500" } ] }