Differences

This shows you the differences between two versions of the page.

chibios:community:guides:work_without_ide [2012/12/16 17:37]
tectu [How-To: Develop without any IDE]
chibios:community:guides:work_without_ide [2013/02/22 18:10] (current)
tectu [Debugging]
Line 152: Line 152:
 === Breakpoints === === Breakpoints ===
  
-This guide should follow soon™+== Set == 
 +To set a break point, you use the following syntax: **break <file>.c:<linenumber>**. In this example, we do set a breakpoint at line 238 in our file main.c. Please note that the system halts BEFORE the given line gets exacuted: 
 + 
 +<code> 
 +(gdb) break main.c:238 
 +</code> 
 + 
 +You can now run your code by typing **run**. As soon as your program reaches the first break point, it will halt and the GDB console pops up (the (gdb) thing). 
 + 
 +== Delete == 
 + 
 +To delete a break point, you need to know it's ID. You can get a list of the currently set break points by typing the command **info break**. You can then delete a breakpoint by using the command **delete <ID>**.
  
 === Step through code === === Step through code ===
 
chibios/community/guides/work_without_ide.txt · Last modified: 2013/02/22 18:10 by tectu
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.3