2 executing debugger, 2 executing debugger -2 – Solvline LemonIDE Ver 1.0c User Manual

Page 41

Advertising
background image

LemonIDE

TM

Chapter 6. LemonIDE Debugger

Debugging information is stripped out when compiled with

this option and debugging is not possible.

Breakpoint debugging

option

-g1

-g

-g3

Minimal Debug Level breakpoint debugging option

Default Debug Level breakpoint debugging option

Maximum Debug Level breakpoint debugging option

Tracepoint debugging

option

-gstabs+

Nonstop Debug Level tracepoint debugging option

As shown in table above, Makefile’s CFLAGS option must be altered in order to perform debugging operations.

The following is a corrected example of Makefile introduced in “5.3.1. Creating & Updating Makefile”. –O2 option

and $(STRIP) $@ have been removed. –g option has to be replaced with -gstabs+ in case of Tracepoint debugging.

.

.
CFLAGS = -g -Wall -Wno-nonnull
.
.
hello : hello.o

rm -f $@

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

.

.

6.2 Executing Debugger

hello.c introduced in “5.2 Creating & Editing Source Codes” will be used to demonstrated the use of debugger.

Debug Icon (Breakpoint & Tracepoint)

Click on the icon left to execute last executed Debug Method.

Clicking on the arrow would allow you to select a Debug Method of your listing.

When in debugging mode, source editor display will transform to debugger display as shown below.

The following is the debugger display.

6-2

Advertising