Manual

LemonIDE
TM
Chapter 6. LemonIDE Debugger
6.3 Breakpoint Debugging
This chapter will introduce breakpoint debugging.
After debugging, it is recommended that the completed program be restored with original CFLAGS option
and STRIP values to optimize execution module.
6.3.1 Modifying compiling environment & Executing debugging
As mentioned in “6.1.2 Cautions when setting compile options”, MakeFile must be modified for
debugging. In the image below optimization option is removed, options are modified to use breakpoint
debugging, STRIP is removed so that execution module will not be compressed..
CFLAGS = -g -Wall -Wno-nonnull
hello : hello.o
rm -f $@
$(CC) $(CFLAGS) $(LDFLAGS) $(IFLAGS) -o $@ $@.o
# $(STRIP) $@
After modifying and saving Makefile, recompile hello.c so that it can be debugged,
6.3.2 Settings Breakpoint
Breakpoints can be added in C/C++ perspective or debug
perspective. From the source line that you would like to add
a breakpoint, select the left margin in the edit view to add a
breakpoint. Double-click to remove the breakpoint. You can
also add a breakpoint from the popup menu by right-
clicking on the source code line.
Added breakpoint is added to “BreakPoints” of “Module
View”.
Various debugging information can be checked on Windows
Æ Show View Æ Other.. Æ Debug.
6-4