无法调试程序 [英] fail to debug the program

查看:86
本文介绍了无法调试程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试了许多设置更改.但是我的程序无法调试并出现以下错误...

I have tried many setting changes.but my program fails to debug with the following error...

''08.exe'': Loaded ''D:\Project\output\Debug\08.exe'', Symbols loaded.
''08.exe'': Loaded ''C:\WINDOWS\system32\ntdll.dll'', Exports loaded.
''08.exe'': Loaded ''C:\WINDOWS\system32\kernel32.dll'', Exports loaded.
''08.exe'': Loaded ''D:\Project\output\Debug\ControllerInterface.dll'', Exports loaded.
''08.exe'': Loaded ''D:\Project\output\Debug\LedDisplayContrller.dll'', Exports loaded.
''08.exe'': Loaded ''D:\Project\output\Debug\dcc.dll'', Exports loaded.
''08.exe'': Loaded ''C:\WINDOWS\system32\ws2_32.dll'', Exports loaded.
''08.exe'': Loaded ''C:\WINDOWS\system32\advapi32.dll'', Exports loaded.
''08.exe'': Loaded ''C:\WINDOWS\system32\rpcrt4.dll'', Exports loaded.
''08.exe'': Loaded ''C:\WINDOWS\system32\secur32.dll'', Exports loaded.
''08.exe'': Loaded ''C:\WINDOWS\system32\msvcrt.dll'', Exports loaded.
''08.exe'': Loaded ''C:\WINDOWS\system32\ws2help.dll'', Exports loaded.
''08.exe'': Loaded ''C:\WINDOWS\system32\mfc100.dll'', Symbols loaded.
''08.exe'': Loaded ''C:\WINDOWS\system32\msvcr100.dll'', Symbols loaded.
''08.exe'': Loaded ''C:\WINDOWS\system32\user32.dll'', Exports loaded.
''08.exe'': Loaded ''C:\WINDOWS\system32\gdi32.dll'', Exports loaded.
''08.exe'': Loaded ''C:\WINDOWS\system32\shlwapi.dll'', Exports loaded.
''08.exe'': Loaded ''C:\WINDOWS\system32\comctl32.dll'', Exports loaded.
''08.exe'': Loaded ''C:\WINDOWS\system32\msimg32.dll'', Exports loaded.
''08.exe'': Loaded ''C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.6002.22791_x-ww_c8dff154\GdiPlus.dll'', Exports loaded.
''08.exe'': Loaded ''C:\WINDOWS\system32\oleaut32.dll'', Exports loaded.
''08.exe'': Loaded ''C:\WINDOWS\system32\MSCTF.dll'', Exports loaded.
''08.exe'': Loaded ''C:\WINDOWS\system32\MSCTFIME.IME'', Exports loaded.
''08.exe'': Loaded ''C:\WINDOWS\system32\clbcatq.dll'', Exports loaded.
''08.exe'': Loaded ''C:\WINDOWS\system32\comres.dll'', Exports loaded.
''08.exe'': Loaded ''C:\WINDOWS\system32\version.dll'', Exports loaded.
''08.exe'': Loaded ''C:\WINDOWS\system32\xpsp2res.dll'', Binary was not built with debug information.

推荐答案

就像您尝试在调试模式下运行程序一样(例如,按F5或选择[Debug]->> [Start Debugging ]从菜单中删除,但以发布模式构建.

检查工具栏上的文本框:通常有三个,其中之一应显示为 Release Debug .如果是Release,请改用Debug,然后重新构建解决方案.如果没有,那么您的项目设置中肯定还有其他问题.


[edit]刚刚发现了表明您确实在Debug模式下构建项目的消息.在这种情况下,没有问题.您只需要在程序中设置一个断点,以便执行可以在那里中断.

如果要从其他库获取更多调试信息,请确保您的项目设置引用了DLL的相应调试版本,例如. G. mfc100d.dll.检查常规下的项目选项以了解使用MFC
[/edit]
Looks like you tried to run your program in debug mode (e. g. by pressing F5 or selecting [Debug]->[Start Debugging] from the menu), but built it in release mode.

Check your toolbar for text boxes: there are normally three, and one of them should either read Release or Debug. If it''s Release, switch to Debug instead, then build your solution again. If not, there must be another problem in your project settings.


[edit]Just spotted the messages indicating that you did build your project in Debug mode. In that case there is no problem. You just have to set a breakpoint in your program so that exectution will break there.

If you want more debug information from other libraries, make sure that your project settings refer to the appropriate debug versions of the DLLs, e. g. mfc100d.dll. Check your project options under General for Use of MFC!
[/edit]


看起来像您尝试在调试模式下运行程序(例如,通过按F5或从菜单中选择[Debug]-> [Start Debugging]),但是处于释放模式.

检查工具栏上的文本框:通常有三个,其中之一应显示为 Release Debug .如果是Release,请改用Debug.如果没有,则您的项目设置中肯定还有另一个问题.
Looks like you tried to run your program in debug mode (e. g. by pressing F5 or selecting [Debug]->[Start Debugging] from the menu), but built it in release mode.

Check your toolbar for text boxes: there are normally three, and one of them should either read Release or Debug. If it''s Release, switch to Debug instead. If not, there must be another problem in your project settings.


我的vs2010文件已损坏....现在,我重新安装了vs2010,它的工作正常....
My vs2010 files were corrupted.... Now I''ve reinstalled my vs2010 and its working fine....


这篇关于无法调试程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆