简体   繁体   English

怎么知道脚本执行完成了.in Rhino Debugger ..?

[英]How know that script execution completed .in Rhino Debugger..?

Is there is any way to find that the execution of javascript in Rhino debugger...Is complete or not...That means that if we make a class and i want that through this class i find that the whole script was execute or not ...is there is any function ...in rhino API... 有没有办法找到在Rhino调试器中执行javascript ...是完成与否...这意味着如果我们创建一个类,我希望通过这个类我发现整个脚本是否执行...在rhino API中有任何功能......

Help 救命

在脚本完成后的运行中, org.eclipse.wst.jsdt.debug.rhino.debugger.RhinoDebuggerImpl类中有一个方法contextReleased(Context context)

Do you tried "print()" mothod? 你尝试过“print()”方法吗?

This method print to Rhino Debugger Console. 此方法打印到Rhino Debugger Console。

For Example 例如

js> print("Start"); /* Anything. */; print("End");

If console printed "End", script is complete. 如果控制台打印“结束”,则脚本完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM