zoukankan      html  css  js  c++  java
  • The tow way of Debugging Scripting Code(郁闷了好久,终于找到了解决办法)

    我在编写  JScript or VBScript,不知道怎么去调试,很郁闷呀!总是在脚本出错了,IE弹出一下作物对话框时去单击"yes" 按钮调试程序,有时为了跟踪问题,总是在问题后面人为的写错代码去跟踪错误,很不方便
    就这种调试方式也得在IE上作某些调整在能弹出Just-in-time dubugging 对话框的
    步骤如下:To use script debugging, make sure that the Disable script debugging check box is cleared on the Advanced tab of the Internet Options dialog box in Microsoft Internet Explorer. You can open this dialog box by clicking Internet Options on the Internet Explorer Tools menu.
    The Just-In-Time Debugging dialog box

    终于在微软的开发工具包里发现了方便的调试方法:

    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 Stop statement. 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
  • 相关阅读:
    3、看源码MVC中的Controllr的Json方法
    2、MVC+IOC容器+ORM结合
    1、看源码MVC如何实例化控制器?
    6、UnityConfig实现AOP
    5、动态代理AOP实现-DynamicProxy模式
    1、面向切面编程
    通过js看类似C#中的回掉
    C#新开一个线程取到数据,如何更新到主线程UI上面
    2.C#自定义Attribute
    1.C#中几个简单的内置Attribute
  • 原文地址:https://www.cnblogs.com/dwfbenben/p/256374.html
Copyright © 2011-2022 走看看