
To do so, select Log Message from the dropdown menu (instead of. You'll have to manually change the executable name under 'program'.


Click Debug -> Add Configuration If you're on Windows then select C++ (Windows) If you're on Mac or Linux then select LLDB: Custom Launch This should create and open launch.json.

Common ArduPilot Debugging Profiles for VSCode // see // // GDB must be installed! // To install GDB on a Debian based system: `sudo apt install gdb` // // Be sure that SITL or WAF have been set to generate debugging symbols // sim_vehicle.py : use '-D', `./Tools/autotest/sim_vehicle.py -v Copter -D -speedup 1 -console -map` // waf : use `-debug`, `./waf configure -board=sitl -debug` // // The examples below are given for plane and copter vehicle types. Pro tip 2: We can even log a message (to the Debug Console) every time a breakpoint is hit. Now that your tools are installed you need to configure your VS Code launch properties.
