To enable just-in-time (JIT) debugging错误的解决方式
来源:互联网 发布:java file.getlength 编辑:程序博客网 时间:2024/06/12 00:08
写了个Windows桌面程序报错,具体错误信息大致如下:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
……
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
大意是在.NET环境运行下,出现了不可预见的错误,然而这种错误可能并不会影响程序的正常运行,他会给你弹出一个提示框。
解决方式:
1.添加一个应用程序配置文件 <application name>.exe.config,指定程序运行时,jitDebugging的值为true。记住不要设为false,看到有楼主设成false,真是一刀切的拿来主义,还是要自己再调试看看,避免误人子弟。其实,这种方式在错误详情里面已经提示了,该配置文件内容如下:
<configuration> <system.windows.forms jitDebugging="true" /> </configuration>
2.如果是C++程序的话,你还必须设置DebuggableAttribute特性在.config文件中,或者在代码中设置:
[assembly:System::Diagnostics::DebuggableAttribute(true, true)];
3.当然,以上两种方式还是不行的话,可以通过修改注册表来实现:
在“开始”菜单中,输入regedit.exe查找并打开注册表
在注册表项编辑器窗口中,查找并删除下列注册表项
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\DbgManagedDebugger
参考官方链接:
https://msdn.microsoft.com/en-us/library/bdcetka3(v=vs.71).aspx
https://msdn.microsoft.com/en-us/library/5hs4b7a6.aspx
- To enable just-in-time (JIT) debugging错误的解决方式
- disable just-in-time (JIT) debugging的两个方法
- 解决 Visual Studio Debugger Just-In-Time Debugging
- 玩CS的时候常常会出现Just-In-Time debugging的方式
- Just in Time Compiler (JIT) in Hotspot
- JIT(just-in-time) 即时编译
- Visual Studio Debugger Just-In-Time Debugging
- Visual Studio Just-In-Time Debugging
- Java的即时编译(Just In Time, JIT)及其优化
- 准时制生产方式(Just In Time简称JIT)
- Just-in-time debugger的问题
- visual studio just-in-time debugger 弹出这个真的没人会解决吗?
- sql 2005 visual studio just-in-time debugger错误
- 设置 Just-In-Time 及其 出现Visual Studio Just-In-Time Debugger的解决方法
- this device has been lockedfor debugging。to enable debugging
- android studio 编译出现Instant Run requires 'tools|Android|Enable adb integration' to be enabled错误解决方式'
- just-in-time information retrieval
- 让人才“Just in Time”!
- 【解决】postman调试oAuth2.0第三方接口
- HttpServletRequest介绍
- 微信退款结果通知报文AES解密
- 侧拉菜单传值
- springmvc的ModelAttribute注解
- To enable just-in-time (JIT) debugging错误的解决方式
- Linux 命令之查看和修改机器名称
- Intellij idea使用小坑
- ViewPager中Fragment的生命周期
- opencv开发笔记(十):利用轨迹条调整图像对比度和亮度
- MacOS 开发 -- 程序打包生成dmg
- Lua table 表的操作——只有代码
- Struts2与SpringMVC的区别
- shishi