public interface DebugHost
CalcParser (FormCalc scripting engine)
can interact with a debugger host.
In environments where this is possible and desired,
applications will need to inform the FormCalc script engine
that they are capable of supporting the DebugHost
interface by invoking the
CalcParser.setDebugHost(DebugHost)
method.
Environments that are not able to debug need not define nor install a DebugHost objects.
| Modifier and Type | Field and Description |
|---|---|
static int |
STEP_INTO |
static int |
STEP_OUT |
static int |
STEP_OVER
Enumeration of all debugging commands that can be used
to control the FormCalc scripting engine when debugging.
|
static int |
STOP |
| Modifier and Type | Method and Description |
|---|---|
boolean |
breakPoint(com.adobe.xfa.formcalc.CalcParser oParser,
int nScriptID,
int nLine,
boolean bSet)
Abstract method that sets or clears a breakpoint.
|
boolean |
command(com.adobe.xfa.formcalc.CalcParser oParser,
int eCmd)
Abstract method that allows for single-stepping.
|
String |
getStackTrace(com.adobe.xfa.formcalc.CalcParser oParser)
Abstract method that returns a new-line delimited string
showing the current stack and parameter values.
|
void |
getVariables(com.adobe.xfa.formcalc.CalcParser oParser,
List<String> oNames,
List<CalcSymbol> oValues)
Abstract method that returns parallel lists of variables/parameters
and values (the lists are the same size).
|
void |
poll()
Abstract method that is called periodically during script execution.
|
int |
stopped(int nScriptID,
int nLine)
Abstract method that is called when the engine stops in debug mode.
|
static final int STEP_OVER
static final int STEP_INTO
static final int STEP_OUT
static final int STOP
int stopped(int nScriptID,
int nLine)
nScriptID - the ID of script, which had been set via
CalcParser.setScriptID(int).nLine - the line of script at which execution has stopped.void poll()
boolean breakPoint(com.adobe.xfa.formcalc.CalcParser oParser,
int nScriptID,
int nLine,
boolean bSet)
oParser - the parser to affect.nScriptID - the ID of script, which had been set via
CalcParser.setScriptID(int).nLine - the line of script.bSet - true if setting breakpoint; false if clearing it.boolean command(com.adobe.xfa.formcalc.CalcParser oParser,
int eCmd)
oParser - the parser to affect.eCmd - the command code (eg. step over/step into/step out).String getStackTrace(com.adobe.xfa.formcalc.CalcParser oParser)
oParser - the parser to query.void getVariables(com.adobe.xfa.formcalc.CalcParser oParser,
List<String> oNames,
List<CalcSymbol> oValues)
oParser - the parser to query.oNames - returned list of variable/parameter names.oValues - returned list of values.Copyright © 2010 - 2020 Adobe. All Rights Reserved