2 settings breakpoint, 3 program run control – Solvline LemonIDE Ver 1.0e User Manual

Page 43

Advertising
background image

LemonIDE

TM

User’s Guide

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





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”.

rm -f $@

$(CC) $(CFLAGS) $(LDFLAGS) $(IFLAGS) -o $@ [email protected]

# $(STRIP) $@

Various debugging information can be checked on “Windows”

Æ “Show View” Æ “Other..” Æ “Debug”.

6.3.3 Program Run Control

“Debug Execution View”provides commands to control program execution during debugging.

Resume (continue)
Suspend
Terminate

Step into

Step over (next)

Step return (finish)

6-19

Advertising