Visual Studio 2008 远程调试器 - 未到达断点

发布于 2024-08-20 06:24:07 字数 356 浏览 4 评论 0原文

我已在运行我要调试的程序的计算机上安装了 VS 2008 SP1 远程调试器。我正在运行远程调试器,无需身份验证/允许任何人连接到所述机器。我正在我的开发机器上运行 VS 2008,并打开该应用程序的项目。我已将已更改为源的 .dll 复制到本地,并远程重建到目标程序的执行目录,包括它的 .pdb 文件。我已通过 VS 和远程调试器附加到远程应用程序的进程。

我在项目中放置的断点表示,由于模块未加载,因此永远不会到达该断点。

远程计算机上的异常,即使我选择重试,也不会对我的本地 VS 实例造成任何影响。

我想在远程应用程序到达时命中我在本地放置的断点。我该怎么做?

我是否想了解 Visual Studio 远程调试的工作原理?

I have installed the VS 2008 SP1 Remote debugger on the machine running the program I want to debug. I am running the Remote Debugger with no auth / allow anyone to connect on said machine. I am running VS 2008 on my development machine with the project for that application open. I have copied a .dll that i have made changed to the source and rebuilt, locally, to the executing directory of the target program, remotely, including it's .pdb file. I have attached to the process of the remote application though VS and the Remote Debugger.

The break point I put in my project says that it will never be reached because the module is not loaded.

An exception on the remote machine, even when i select retry, dose not cause any effect on my local VS instance.

I want to hit a break point i place locally when the remote application reaches it. How do I do this?

Am i miss understanding how Visual Studio Remote Debugging works?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

忱杏 2024-08-27 06:24:07

断点是普通的红圈还是有警告的一面?

如果它是红色圆圈,那么可能的问题是启用了“Just my Code”,并且 VS 认为这不是您的代码。转到调试器 ->工具->选项并禁用“仅我的代码”。这应该可以解决这个问题。

如果它有警告标志,请将鼠标悬停在断点上,查看错误消息的内容,并将其作为评论/编辑您的答案发回。

编辑 OP表示带有“无符号”工具提示的空心圆圈

打开模块窗口(调试器 -> 窗口 -> 模块)。然后向下滚动到包含您的代码的 DLL。右键单击窗口并选择加载符号。这可能会打开打开文件对话框。导航到您的符号并点击“确定”。

Is the breakpoint the normal red circle or does it have a caution side in it?

If it's a red circle then the likely problem is "Just my Code" is enabled and VS thinks it's not your code. Go to debugger -> Tools -> Options and disable "Just My code". That should clear up the issue.

If it has the caution sign then hover over the break point and see what the error message says and please post it back as a comment / edit to your answer.

EDIT OP said hollow circle with the "No symbols" tooltip

Open up the modules window (debugger -> windows -> Modules). Then scroll down to the DLL that contains your code. Right click on the window and select Load Symbols. This will likely open the open file dialog. Navigate to your symbols and hit OK.

终难遇 2024-08-27 06:24:07

您安装了 Service Pack 1 吗?

http://support.microsoft.com/kb/957912

Have you installed Service Pack 1?

http://support.microsoft.com/kb/957912

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文