WIN732位 应该如何开启JIT调试?

查看 68|回复 2
作者:zouzhao   
没有多少CB,望各位大神能帮助
公司有个软件不能够正常打开,不知道哪位大神能教下。

[color=]出错详情
拉到最下面说需要打开实时JIT,然后我已经百度安装过所有的.NET版本,和尝试在注册表里增加个数值也处理过也是不行,不知道哪个步骤出问题,求帮忙。

[color=]注册表增加的数值是:

  • 转到以下注册表项:\ HKEY_LOCAL_MACHINE软件\微软\\ Windows NT CurrentVersionAeDebug\
  • 使用指定调试器的命令行的REG_SZ字符串添加或编辑 调试器 值。

    "C:\debuggers\windbg.exe" -p %ld -e %ld -g  
    (字符串应包含调试器可执行文件的完全限定路径。 使用“%ld”参数向调试器命令行指示进程 ID 和事件句柄。 不同的调试器可能具有自己的参数语法来指示这些值。 调用调试器时,第一个“%ld”替换为进程 ID,第二个“%ld”替换为事件句柄。)
    ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————

    [color=]错误代码如下:

    无效索引。(异常来自 HRESULT:0x80020000B(DISP_E_BADINDEX))。
    有关调用实时(JIT)调试而不是此对话框的详细信息,
    请参见此消息的结尾。
    ************** 异常文本 **************
    System.Runtime.InteropServices.COMException (0x8002000B): 无效索引。 (异常来自 HRESULT:0x8002000B (DISP_E_BADINDEX))
       在 Microsoft.Office.Interop.Excel.Sheets.get_Item(Object Index)
       在 RS232.fclsRS232Tester.btnCreatExcel_Click(Object sender, EventArgs e) 位置 E:\ti_prj\bigpot\sw\gui\RS232\RS232\Form1.cs:行号 5357
       在 System.Windows.Forms.Control.OnClick(EventArgs e)
       在 System.Windows.Forms.Button.OnClick(EventArgs e)
       在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       在 System.Windows.Forms.Control.WndProc(Message& m)
       在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
       在 System.Windows.Forms.Button.WndProc(Message& m)
       在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    ************** 已加载的程序集 **************
    mscorlib
        程序集版本: 2.0.0.0
        Win32 版本: 2.0.50727.5420 (Win7SP1.050727-5400)
        基本代码: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    RS232
        程序集版本: 1.0.0.0
        Win32 版本: 1.0.0.0
        基本代码: file:///C:/Users/Administrator/Desktop/RS232_LAB141229/RS232_20130521.exe
    ----------------------------------------
    System.Windows.Forms
        程序集版本: 2.0.0.0
        Win32 版本: 2.0.50727.5420 (Win7SP1.050727-5400)
        基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
        程序集版本: 2.0.0.0
        Win32 版本: 2.0.50727.5420 (Win7SP1.050727-5400)
        基本代码: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
        程序集版本: 2.0.0.0
        Win32 版本: 2.0.50727.5420 (Win7SP1.050727-5400)
        基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    Microsoft.Office.Interop.Excel
        程序集版本: 14.0.0.0
        Win32 版本: 14.0.4733.1000
        基本代码: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.Office.Interop.Excel/14.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.Excel.dll
    ----------------------------------------
    mscorlib.resources
        程序集版本: 2.0.0.0
        Win32 版本: 2.0.50727.5420 (Win7SP1.050727-5400)
        基本代码: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    System.Windows.Forms.resources
        程序集版本: 2.0.0.0
        Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
        基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dll
    ----------------------------------------
    ************** JIT 调试 **************
    要启用实时(JIT)调试,
    该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
    jitDebugging 值。
    编译应用程序时还必须启用
    调试。
    例如:
       
    启用 JIT 调试后,任何无法处理的异常
    都将被发送到在此计算机上注册的 JIT 调试器,
    而不是由此对话框处理。

    版本, 程序

  • zouzhao
    OP
      

    没有审批还是没人回 救命骨灰们
    Broadm   

    看你贴的错误信息,很明显是在点击按钮的时候,处理excel表格的时候,代码传了无效的索引导致的,可有源码.自己到指定位置修改下
    错误代码如下:
    无效索引。(异常来自 HRESULT:0x80020000B(DISP_E_BADINDEX))。
    有关调用实时(JIT)调试而不是此对话框的详细信息,
    请参见此消息的结尾。
    ************** 异常文本 **************
    System.Runtime.InteropServices.COMException (0x8002000B): 无效索引。 (异常来自 HRESULT:0x8002000B (DISP_E_BADINDEX))
       在 Microsoft.Office.Interop.Excel.Sheets.get_Item(Object Index)
       在 RS232.fclsRS232Tester.btnCreatExcel_Click(Object sender, EventArgs e) 位置 E:\ti_prj\bigpot\sw\gui\RS232\RS232\Form1.cs:行号 5357
    您需要登录后才可以回帖 登录 | 立即注册

    返回顶部