The tow way of Debugging Scripting Code(郁闷了好久,终于找到了解决办法)
2005-10-17 12:56
447 查看
我在编写 JScript or VBScript,不知道怎么去调试,很郁闷呀!总是在脚本出错了,IE弹出一下作物对话框时去单击"yes" 按钮调试程序,有时为了跟踪问题,总是在问题后面人为的写错代码去跟踪错误,很不方便
就这种调试方式也得在IE上作某些调整在能弹出Just-in-time dubugging 对话框的
步骤如下:To use script debugging, make sure that the Disable script debugging[/b] check box is cleared on the Advanced[/b] tab of the Internet Options[/b] dialog box in Microsoft Internet Explorer. You can open this dialog box by clicking Internet Options[/b] on the Internet Explorer Tools[/b] menu.
终于在微软的开发工具包里发现了方便的调试方法:
To debug the code that is used to customize an InfoPath form, you can use a programming debug statement in your code. In JScript, use the
The following example demonstrates how to use the debug statement in the OnLoad event handler by using JScript syntax:
If you are using VBScript as the default scripting language, the debug statement can be used as follows:
就这种调试方式也得在IE上作某些调整在能弹出Just-in-time dubugging 对话框的
步骤如下:To use script debugging, make sure that the Disable script debugging[/b] check box is cleared on the Advanced[/b] tab of the Internet Options[/b] dialog box in Microsoft Internet Explorer. You can open this dialog box by clicking Internet Options[/b] on the Internet Explorer Tools[/b] menu.
终于在微软的开发工具包里发现了方便的调试方法:
To debug the code that is used to customize an InfoPath form, you can use a programming debug statement in your code. In JScript, use the
debugger;statement; in VBScript, use the
Stopstatement. After you have entered a debug statement in your code, save the code and preview your form.
The following example demonstrates how to use the debug statement in the OnLoad event handler by using JScript syntax:
function XDocument::OnLoad(eventObj) { debugger;}
If you are using VBScript as the default scripting language, the debug statement can be used as follows:
Sub XDocument_OnLoad(eventObj) Stop End Sub
相关文章推荐
- 让人郁闷了好久的问题,终于解决了,之前网上也看到一些解决方法,但大多没有解决问题,所以记录下来,以供参考之用(ADO Could Not Find The Specified Provider)
- 关于 JDeveloper 出现 unable to create an instance of the java virtual machine 错误的解决办法
- Resource is out of sync with the file system解决办法
- Resource is out of sync with the file system的解决办法
- Resource is out of sync with the file system查看项目文件时解决办法
- This version of the rendering library is more recent than your version of ADT ..解决办法
- Java compiler level does not match the version of the installed Java project facet.解决办法
- Cannot reduce the visibility of the inherited method from Interface解决办法
- Eclipse Resource is out of sync with the file system 解决办法
- 安装mysql Install/Remove of the Service Denied!错误的解决办法
- Android开发中遇到的问题(五)——Eclipse导入Android项目出现"Invalid project description overlaps the location of another project"错误的解决办法
- unhandled event loop exception eclipse/An error has occurred.See the log file终于找到解决方法了
- eclipse : Resource is out of sync with the file system的解决办法
- Javascript:郁闷了好久终于找到原因了,原理还不明白
- Failed to parse the output of \'adb version\' 两种解决办法
- idea类变成红圈中间一个J(Java class located out of the source root. )解决办法
- mysqld -install命令时出现install/remove of the service denied错误的原因和解决办法
- Resource is out of sync with the file system的解决办法
- The content of element type "web-app" must match……问题之解决办法
- Android报错:The content of the adapter has changed...与Channel is unrecoverably broken and will be disposed的分析与解决办法