diff options
Diffstat (limited to 'js/Misc/DEBUG.js')
-rw-r--r-- | js/Misc/DEBUG.js | 49 |
1 files changed, 47 insertions, 2 deletions
diff --git a/js/Misc/DEBUG.js b/js/Misc/DEBUG.js index 854cebc1..8f37e923 100644 --- a/js/Misc/DEBUG.js +++ b/js/Misc/DEBUG.js @@ -1,3 +1,48 @@ -Syntax error in input LexToken(SCICOS_DEBUG,'scicos_debug',1,1617) /* autogenerated from "macros/Misc/DEBUG.sci" */ -None +function DEBUG() { +DEBUG.prototype.get = function DEBUG() { +} +DEBUG.prototype.set = function DEBUG() { +x=arg1; +graphics=arg1.graphics; +exprs=graphics.exprs; +textmp=exprs(2); +ok=true; +while (1==1) { +[txt]=dialog(["Enter scilab instructions for debugging."," Inputs are block and flag, output is block"],textmp); +if (txt!=[]) { +tt=["block=debug_scicos(block,flag)"]; +if (execstr("deff(tt,txt)","errcatch")==0) { +warnMode=warning("query"); +warning("off"); +save(TMPDIR+"/debug_scicos",debug_scicos); +warning(warnMode); +exprs[2-1]=txt; +if ((scicos_debug()!=2&&scicos_debug()!=3)) { +scicos_debug(2); +} +break +} else { +message(["Error in the instructions",lasterror()]); +} +} else { +ok=None; +break +} +} +if (ok) { +graphics.exprs=exprs; +x.graphics=graphics; +} +} +DEBUG.prototype.define = function DEBUG() { +model=scicos_model(); +model.sim=list("%debug_scicos",99); +model.blocktype="d"; +exprs=list("","xcos_debug_gui(flag,block);"); +gr_i=[]; +x=standard_define([8,2],model,exprs,gr_i); +} +DEBUG.prototype.details = function DEBUG() { +} +} |