interface XDebugging in module com::sun::star::script::

(Global Index)

Syntax

interface XDebugging : com::sun::star::uno::XInterface ;

Description

makes it possible to set breakpoints in an interpreter.

Method Summary

setBreakPoint

clearAllBreakPoints clears all breakpoints in the module set by "setBreakPoint".

eval * *

getStackTrace * Return the engine's stack trace of the current execute position. Line break is the delemiter.

getContextInformation

dumpVariable returns the value of the variable at the given stack position.

setVariable sets the value of the specified variable within the specified stack frame.

isVariable

stop stops the execution of the interpreter.

stepOver executes the next and only the next statement.

stepIn executes the next and only the next statement.

stepOut executes the program until the next return from this stack frame.

doContinue continues the program execution.

Method Details



setBreakPoint

Syntax

long setBreakPoint (
string aModuleName,
long nSourceCodeLine,
boolean bOn );

Description

Returns

the source code line where the breakpoint was set.

The value can differ from the parameter nSourceCodeLine when this is not a valid line to place it. -1 indicates that the breakpoint cannot be set at this position.


clearAllBreakPoints

Syntax

void clearAllBreakPoints (
string aModuleName );

Description

clears all breakpoints in the module set by "setBreakPoint".


eval

Syntax

string eval (
string aSourceCode,
short nCallStackPos );

Description

* *

Parameter CallStackPos

Position in the call stack for that the expression * should be evaluated. 0 is the top/actual position in the call * in the call stack, 1 the next and so on.

getStackTrace

Syntax

sequence< string > getStackTrace ();

Description

* Return the engine's stack trace of the current execute position. Line break is the delemiter.


getContextInformation

Syntax

com::sun::star::script::ContextInformation getContextInformation (
short nCallStackPos );

Description

Returns

more detailed information about a specified stack frame.

Parameter nCallStackPos

specifies the position in the call stack for the variables that should be delivered.

dumpVariable

Syntax

string dumpVariable (
string aVariableName,
short nCallStackPos );

Description

returns the value of the variable at the given stack position.


setVariable

Syntax

void setVariable (
string aVariableName,
string aValue,
short nCallStackPos );

Description

sets the value of the specified variable within the specified stack frame.


isVariable

Syntax

boolean isVariable (
string aVariableName,
short nCallStackPos );

Description

Returns

whether the given variable exists within the specified stack frame.

stop

Syntax

void stop ();

Description

stops the execution of the interpreter.

To continue with the execution, call .


stepOver

Syntax

void stepOver ();

Description

executes the next and only the next statement.

If the next statement is a function call, the function is executed completely.


stepIn

Syntax

void stepIn ();

Description

executes the next and only the next statement.

If the next statement is a function call, only the function entered.


stepOut

Syntax

void stepOut ();

Description

executes the program until the next return from this stack frame.


doContinue

Syntax

void doContinue ();

Description

continues the program execution.

Top of Page