1

我正在尝试调试从 VB6 应用程序调用的 ac# 类库 COM DLL。

我已将项目属性设置为运行外部应用程序并设置断点,但从未触发断点。

所有断点都报告说没有“尚未为此文档加载符号”并且它们不会被命中。

我知道外部应用程序正在调用我的 DLL(显示了 MessageBoxes),但是如何通过它进行调试?

谢谢

毫米

4

2 回答 2

2

运行 VB6 应用程序后,您必须附加到 VB6 进程。调试>附加到进程。请参阅http://msdn.microsoft.com/en-us/library/vstudio/3s68z0b3.aspx

于 2013-11-11T16:06:28.320 回答
0

看看你有没有经历过以下的情况:

1. Go to menu build and click on the configuration manager whether it is chosen as debug mode.
2. Check if the your application dll remains the old in the bin folder. If then, remove all files inside debug->bin folder and rebuild your solution again.
3. You need to make sure the .pdb files are in the same location as the dll resides.
4. then place the breakpoint and check weather it triggers.

谢谢。

于 2013-11-11T16:29:05.517 回答