Product Documentation
Cadence SKILL Development Reference
Product Version IC23.1, June 2023

skillDebugger

skillDebugger( 
) 
=> nil

Description

Activates the SKILL Debugger. Usually invoked by a break or error handler.

You do not normally call it; instead it is invoked by the break or error handler. The SKILL debugger is the default break handler, and can also be used as the current error handler by calling the installDebugger function.

When you enter the debugger, the prompt changes to debug #> where # is a number identifying the number of nested debuggers plus one. Once in the SKILL debugger, you can examine the stack and local variables with functions such as stacktrace, dump, and where. You can also execute any SKILL function normally available because the debugger calls the SKILL top level. To quit the function, use debugQuit.

If the SKILL debugger is entered from a breakpoint, the following functions can be used to resume execution: step, next, stepout, and continue. If an error occurs and an errset is on the stack, the SKILL Debugger will not be invoked. To debug errors in this case, set _stacktrace to an integer value greater than zero or set breakpoints before the error occurs.

Arguments

None

Value Returned

nil

Always returns nil.

Examples

skillDebugger()      ; Calls the debugger.
debugQuit() ; Exits the debugger.
alias q debugQuit   ; Alias used for faster typing.

Related Topics

debugQuit

dump

cont, continue

installDebugger

next

stacktrace

uninstallDebugger


Return to top
 ⠀
X