![]() | Application Builder User's Guide | WideStudio Index Table of contents |
How to Debug an Application
To build an application with debugging mode, select ((menu:Build >> Debug)).Usage of GDB
[Start the debugger]
Enter "run" to execute an application. Enter "where" to stack trace when the program is stopped by error. Enter "list" to see the position of the source.
There are the following commands in GDB.
- Run
Run command starts the application.- Cont
Cont command continues the interrupted application.- Step/next
Step / next command runs the interrupted application step by step.- Where
Where command Shows stack trace of function call.
Print command shows the value of variables or functions.- list
List command shows the current position of source.- break
Break command adds a break point. Enter it as follows.
Break file.cpp:XXX
Break CLASS: FUNCTION ()
XXX is a line number.- cntl-C
Cntl-C interrupts the application.
[Debugging the application]
Copyright(C) T. Hirabayashi, 2000-2002 | Last modified: Oct 27, 2002 |