1// Example program for avr-debugger library.
3// These instructions are for Visual Studio Code. For other use cases see the readme.txt.
5// - Add "output": ".\\build" to file arduino.json (in .vscode folder)
6// - Change the COM port number to your port number in launch.json, see "miDebuggerServerAddress": "\\\\.\\COM7"
7// - Change the path to point to avr-gdb.exe in your Arduino installation, see launch.json, "miDebuggerPath":
9// - Place breakpoint to loop, e.g. on digitalWrite - by clicking into the left margin of the file - red dot should appear
10// - Upload the program to your Arduino
11// - Switch to debug view
12// - Click Start debugging button (Play icon) in the top
22 debug_init(); // initialize the debugger
32 digitalWrite(13, HIGH);
34 digitalWrite(13, LOW);