我有ServicedComponent,我已经将它作为引用(调试模式)添加到我的测试代码中,它将pdb文件与dll放在同一个文件夹中。
我正在使用VS 2010。我检查了“启用非托管代码调试”,并在两个项目设置中启用了Visual宿主进程。这两个项目都是本地项目。
using(Gatherer nag = new Gatherer())
{
try
{
nag.test(); ==> it won't step in test function.然而,当我试图介入时,它是不会介入的。它会跳到下一行。
我还需要做什么来调试这个ServicedComponent呢?
发布于 2013-11-21 16:29:10
我刚刚想明白了。我必须选择“附加到进程”,并从列表中选择"dllhost.exe“。
https://stackoverflow.com/questions/20126396
复制相似问题