us_set_breakpoint¶
us_set_breakpoint sets a debug break point. If inserted in a script
file without parameters, the breakpoint will be set in the next
code line (should not be a comment line). The UniScript path enviroment
variable must contain the source file path(uniscript-path
).
The function is useful to debug functions invoked via the command line.
-
bool = us_set_breakpoint()
-
bool = us_set_breakpoint(nLine)
-
bool = us_set_breakpoint(ssFile)
-
bool = us_set_breakpoint(ssFile, nLine)
Parameters
-
nLine
nLine is a row number. The row must contain a statement (not a empty or comment line). The given line number must reference a code line in the ic file that will be invoked after us_set_breakpoint has been evaluated.
-
ssFile
ssFile is the complete file name with the path name. The path will be added to the
uniscript-path
enviroment variable.
Comment
us_path will add the path to the uniscript-path
enviroment variable.
If the source code cannot be located the execution of MyTest() will not be
stop at the code line a=1;
.
def MyTest()
{
us_path("add", "d:/myuniplot/");
us_set_breakpoint();
a = 1; // will stop execution here
}
us_get_breakpoints¶
us_get_breakpoints returns a list of debug break points (String-Array)
of the form filename|lineno
.
us_remove_breakpoints¶
us_remove_breakpoints removes all debug break points.
-
bool = us_remove_breakpoints()
History
Version | Description |
---|---|
R2016.0 | Neu. |
See also
id-809299