Visual Studio 2012 远程调试:对内存位置的访问无效 [英] Visual Studio 2012 Remote Debugging: Invalid access to memory location
问题描述
我按照此链接中的说明操作:http://msdn.microsoft.com/en-us/library/bt727f1t.aspx 在我运行应用程序的服务器上安装远程调试器(2012),希望从我运行 Visual Studio 2012 的开发机器远程调试它.
I followed the instructions in this link: http://msdn.microsoft.com/en-us/library/bt727f1t.aspx to install the remote debugger (2012) on my server where the application is running in hope to debug it remotely from my dev machine running visual studio 2012.
我什至无法查看要附加到远程计算机上的进程列表.我不断收到无法连接到名为 [名称] 的 Microsoft Visual Studio 远程调试监视器.对内存位置的访问无效".
I cannot even get as far as viewing the list of processes to attach to on the remote machine. I keep getting "Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor named [name]. Invalid access to memory location".
我成功连接了几次,但连接立即失败,然后我无法再次连接.
I have managed to successfully connect a few times but then the attach fails immediately then I cannot connect again.
这给我带来了巨大的问题,因为我无法远程调试任何东西.我一定错过了一些明显的东西.请有人给我一个解决方案.
This is causing huge issues for me as I cannot remote debug anything. I must be missing something glaring. Please someone give me a solution.
推荐答案
事实证明,我错过的一件事是告诉 Visual Studio 在哪里可以找到与远程进程相关的 .pdb 符号.为此,请转到工具 -> 选项 -> 调试,然后在符号 (.pdb) 位置将远程位置添加到 pdb 文件.
It turns out the one thing I missed was to tell Visual Studio where to find the .pdb symbols relating to the remote process. To do this go to Tools -> Options -> Debugging then in the Symbol (.pdb) locations add the remote location to the pdb files.
澄清一下,我附加得很好,但无法破解代码.现在我能.请注意,在您进入我成功附加到流程但无法捕获断点的阶段之前,还有其他障碍.
To clarify, I was attaching fine but could not break into code. Now I can. Be aware though that there are other hurdles before you get to my stage where I was attaching to the process successfully but could not catch a breakpoint.
这篇关于Visual Studio 2012 远程调试:对内存位置的访问无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!