update dev300-m58
[ooovba.git] / udkapi / com / sun / star / script / XDebugging.idl
blob87c892a4212f6c018a472367c7e33010f828b6fc
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XDebugging.idl,v $
10 * $Revision: 1.10 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_script_XDebugging_idl__
31 #define __com_sun_star_script_XDebugging_idl__
33 #ifndef __com_sun_star_uno_XInterface_idl__
34 #include <com/sun/star/uno/XInterface.idl>
35 #endif
37 #ifndef __com_sun_star_script_ContextInformation_idl__
38 #include <com/sun/star/script/ContextInformation.idl>
39 #endif
42 //=============================================================================
44 module com { module sun { module star { module script {
46 //=============================================================================
48 // DocMerge from xml: interface com::sun::star::script::XDebugging
49 /** makes it possible to set breakpoints in an interpreter.
50 @deprecated
52 published interface XDebugging: com::sun::star::uno::XInterface
54 //-------------------------------------------------------------------------
55 /** returns the source code line where the breakpoint was set.
57 <p>The value can differ from the parameter
58 <var>nSourceCodeLine</var> when this is not a valid line to
59 place it. -1 indicates that the breakpoint cannot be set at
60 this position.
62 long setBreakPoint( [in] string aModuleName,
63 [in] long nSourceCodeLine,
64 [in] boolean bOn );
66 //-------------------------------------------------------------------------
67 /** clears all breakpoints in the module set by "setBreakPoint".
69 void clearAllBreakPoints( [in] string aModuleName );
71 //-------------------------------------------------------------------------
72 /** Evaluates an expression.
74 @returns the value of the expression as string.
76 @param CallStackPos Position in the call stack for which the expression
77 should be evaluated. 0 is the top/actual position in the call
78 in the call stack, 1 the next and so on.
80 string eval( [in] string aSourceCode,
81 [in] short nCallStackPos );
83 //-------------------------------------------------------------------------
84 /** Returns the engine's stack trace of the current execute position. Line break is the delimiter.
86 sequence<string> getStackTrace();
88 //-------------------------------------------------------------------------
89 /** returns more detailed information about a specified stack frame.
91 @param nCallStackPos
92 specifies the position in the call stack for the
93 variables that should be delivered.
95 com::sun::star::script::ContextInformation getContextInformation( [in] short nCallStackPos );
97 //-------------------------------------------------------------------------
98 /** returns the value of the variable at the given stack position.
100 string dumpVariable( [in] string aVariableName,
101 [in] short nCallStackPos );
103 //-------------------------------------------------------------------------
104 /** sets the value of the specified variable within the specified
105 stack frame.
107 void setVariable( [in] string aVariableName,
108 [in] string aValue,
109 [in] short nCallStackPos );
111 //-------------------------------------------------------------------------
112 /** returns whether the given variable exists within the specified stack frame.
114 boolean isVariable( [in] string aVariableName,
115 [in] short nCallStackPos );
117 //-------------------------------------------------------------------------
118 /** stops the execution of the interpreter.
120 <p>To continue with the execution, call <method>XDebugging::doContinue</method>.
122 void stop();
124 //-------------------------------------------------------------------------
125 /** executes the next and only the next statement.
127 <p>If the next statement is a function call, the function is
128 executed completely.</p>
130 void stepOver();
132 //-------------------------------------------------------------------------
133 /** executes the next and only the next statement.
135 <p>If the next statement is a function call, only the function
136 entered.</p>
138 void stepIn();
140 //-------------------------------------------------------------------------
141 /** executes the program until the next return from this stack frame.
143 void stepOut();
145 //-------------------------------------------------------------------------
146 /** continues the program execution.
148 void doContinue();
152 //=============================================================================
154 }; }; }; };
156 #endif