Solvline LemonIDE Ver 1.0c Manual de usuario Pagina 41

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 56
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 40
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
Vista de pagina 40
1 2 ... 36 37 38 39 40 41 42 43 44 45 46 ... 55 56

Comentarios a estos manuales

Sin comentarios