I have a simple C++ DLL that implements a few custom actions for a WiX installer.
我有一个简单的C ++ DLL,它为WiX安装程序实现了一些自定义操作。
Debugging the custom actions is usually simple: put up a temporary dialog box at the beginning of the action, and attach to the process when the dialog box appears.
调试自定义操作通常很简单:在操作开始时放置一个临时对话框,并在对话框出现时附加到进程。
But today, whenever I attach to the process, I get the "Microsoft Visual Studio is Busy" bubble appearing at the bottom of the screen. I cannot figure out where this is coming from. Any ideas?
但是今天,每当我加入这个过程时,我都会在屏幕底部出现“Microsoft Visual Studio is Busy”气泡。我无法弄清楚这是从哪里来的。有任何想法吗?
2 个解决方案
#1
2
After hours of trying to figure this out, I realized that the problem was that I had debugging symbols enabled in Tools->Options->Debugging->Symbols. The latency in looking up symbols was leading to the apparent lockup.
经过几个小时的尝试来解决这个问题,我意识到问题是我在Tools-> Options-> Debugging-> Symbols中启用了调试符号。查找符号的延迟导致明显的锁定。
Clearing the "Search the above locations only when symbols are loaded manually" seems to have alleviated the problem.
清除“仅在手动加载符号时搜索上述位置”似乎缓解了问题。
#2
0
Are you referring debug symbols from a network location that is not available (e.g. a ClearCase dynamic view or something similar). This can cause Visual Studio to hang when you attach to a process.
您是指从不可用的网络位置调用调试符号(例如ClearCase动态视图或类似的东西)。当您附加到进程时,这可能导致Visual Studio挂起。
Check Tools->Options->Debugging->Symbols and try temporarily disabling the symbol file (.pdb) locations until you figure out which is slowing it down (or causing it to hang). Through elimination you should be able to figure this out.
检查工具 - >选项 - >调试 - >符号,然后尝试暂时禁用符号文件(.pdb)位置,直到找出哪个位置减慢(或导致它挂起)。通过淘汰你应该能够解决这个问题。
#1
2
After hours of trying to figure this out, I realized that the problem was that I had debugging symbols enabled in Tools->Options->Debugging->Symbols. The latency in looking up symbols was leading to the apparent lockup.
经过几个小时的尝试来解决这个问题,我意识到问题是我在Tools-> Options-> Debugging-> Symbols中启用了调试符号。查找符号的延迟导致明显的锁定。
Clearing the "Search the above locations only when symbols are loaded manually" seems to have alleviated the problem.
清除“仅在手动加载符号时搜索上述位置”似乎缓解了问题。
#2
0
Are you referring debug symbols from a network location that is not available (e.g. a ClearCase dynamic view or something similar). This can cause Visual Studio to hang when you attach to a process.
您是指从不可用的网络位置调用调试符号(例如ClearCase动态视图或类似的东西)。当您附加到进程时,这可能导致Visual Studio挂起。
Check Tools->Options->Debugging->Symbols and try temporarily disabling the symbol file (.pdb) locations until you figure out which is slowing it down (or causing it to hang). Through elimination you should be able to figure this out.
检查工具 - >选项 - >调试 - >符号,然后尝试暂时禁用符号文件(.pdb)位置,直到找出哪个位置减慢(或导致它挂起)。通过淘汰你应该能够解决这个问题。