Visual C ++:“调试”在顶部菜单上不起作用。 [英] Visual C++: "Debug" on the top menu does not work.

查看:101
本文介绍了Visual C ++:“调试”在顶部菜单上不起作用。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Visual C ++版本4.6.01586。

I have Visual C++ version 4.6.01586 .

我可以编辑和编译并运行等C ++ 程序正常,选择"发布"或"调试"在菜单项"Team"正下方的选择选项卡上。好的。

I can edit and compile and run etc C++  programs as normal, choosing "Release" or "Debug" on the selection tab immediately below the menu item "Team". OK.

但是当我尝试在"Debug"中测试一个程序时模式,通过顶部菜单项"Debug",运行在编译/汇编时挂起,在屏幕的底部有一个橙色带,带有"dwmapi.dll的加载符号"。在它的
左端。 ("klitrans"是项目的名称。)

But when I try to test a program in "Debug" mode, as via the top menu item "Debug", the run hangs on compile/assemble, with across the bottom of the screen an orange-colored band with "Loading symbols for dwmapi.dll" on its left end. ("klitrans" is the name of the project.)

我可以通过鼠标"调试,停止调试"来解决这个问题。然后会出现一个窗口,如下所示。

I can break out of this by mousing "Debug, Stop debugging". Then a window appears saying as listed below.

请问,发生了什么? Norton Security with Backup是否受到干扰并弄得一团糟?我需要重装吗?或者是什么?

Please, what has happened? Has Norton Security with Backup interfered and made a mess? Do I need to reload something? Or what?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

'klitrans.exe'(Win32):已加载'C:\sf \KL \ klitrans \ klitrans \Release \ klitrans。可执行程序'。已加载符号。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \ antdll.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \ kernel32.dll'。无法找到或打开PDB文件。
$
'klitrans.exe'(Win32):已卸载'C:\ Windows \SysWOW64 \ kernel32.dll'

' klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \ kernel32.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \KernelBase.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\Program Files(x86)\ Norton Security with Backup \NortonData \22.5.5.15 \Definitions\BASHDefs\20170530.001\UMEngx86.dll"。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \ user32.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \ win32u.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \ gdi32.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \ gdi32full.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \ Shell32.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \ msvcrt.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \cfgmgr32.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \windows.storage.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \ combase.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \ucrtbase.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \rpcrt4.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \sspicli.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \cryptbase.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \bcryptprimitives.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \sechost.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \powrprof.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \ advapi32.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \shlwapi.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \ kernel.appcore.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \ SHCore.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \profapi.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \vcruntime140.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \ imm32.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \ uxtheme.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \ msctf.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \ odaut32.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \ msvcp_win.dll'。无法找到或打开PDB文件。

'klitrans.exe'(Win32):已加载'C:\ Windows \SysWOW64 \dwmapi.dll'。无法找到或打开PDB文件。

程序'[9828] klitrans.exe'已退出,代码为0(0x0)。

'klitrans.exe' (Win32): Loaded 'C:\sf\KL\klitrans\klitrans\Release\klitrans.exe'. Symbols loaded.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\kernel32.dll'
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Program Files (x86)\Norton Security with Backup\NortonData\22.5.5.15\Definitions\BASHDefs\20170530.001\UMEngx86.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\win32u.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32full.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shell32.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\windows.storage.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\combase.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbase.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\powrprof.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shlwapi.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel.appcore.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\SHCore.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\profapi.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\vcruntime140.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\uxtheme.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp_win.dll'. Cannot find or open the PDB file.
'klitrans.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dwmapi.dll'. Cannot find or open the PDB file.
The program '[9828] klitrans.exe' has exited with code 0 (0x0).

推荐答案

我的猜测是,加载符号的问题都没有导致调试挂起。问题可能是其他问题。

My guess is that none of the problems loading the symbols is causing the debug to hang. The problem is probably something else.

试试这个。在程序的第一行放置一个断点。你知道怎么做吗?调试时是否达到了断点?我会单步执行main函数的每一行,直到程序挂起,或者可以选择性地在其中放置断点
来确定程序挂起的位置。我会用"Step Over" (F10)单步执行主要语句然后"步入" (F11)当你知道哪一个是相关的时候进入一个函数。

Try this. Put a breakpoint on the first line of the program. Do you know how to do that? Is the breakpoint reached when you debug? I would single-step over each line of the main function until the program hangs, or maybe put breakpoints selectively in it to determine where the program is hanging. I would use the "Step Over" (F10) to single-step just the statements in the main and then "Step into" (F11) to go into a function when you know which one is relevant.


这篇关于Visual C ++:“调试”在顶部菜单上不起作用。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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