Debugging Functionality Debugging Functionality

 

Lycia Studio introduces the Debug interface used to debug programs. It comprises views which track changes in the variable values and in the selected expressions, allows breakpoints manipulations and enables stepwise code investigation.

 

The special type of perspective - the Debug perspective - is used to manage the program which is being debugged. This perspective combines all the views and options required for quick and easy debugging. The figure on the right shows how this perspective looks like. 

Lycia Graphical Debuger

Stepping through the Code

When a program is run in debug mode, you can step through the code line-by-line. The program execution can be suspended and resumed at any time. A set of breakpoints will ensure that the execution stops at the places where you want to examine your code more carefully. 

Manipulating Values at Runtime

You can view the values of all the variables present in the program. They change dynamically while the program is being executed. You can also view the values of any expressions you may want to monitor. You can change the value of any variable at runtime manually using this view, this will not affect the source file. Thus you can test some features without changing the source code.

 

 

Watchpoints and Expressions

Lycia Studio also allows the developer to debug applications by creating watchpoints and watch expressions.   The expressions are similar to variables in the Variables view - the changing of the value of a variable or an expression does not cause the program execution to suspend. For that effect you need to create a watchpoint on a variable or on an expression. Watchpoints and watch expressions can be easily created and viewed using the Breakpoints and Expressions Views.