C# 中插入断点
我无法设置断点。
我在断点中收到如下消息:
“当前不会命中断点,不会加载任何符号”
I am unable to put a breakpoint.
I am getting the message in the breakpoint like:
"break point will not be currently hit, no symbols are loaded"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
有几种解决方案。问题是加载的符号与可执行文件不匹配。
1) 确保您附加的 exe 的 PDB 位于同一目录且版本相同
2) 确保您的源代码也是相同版本
3) 调试时,打开模块窗口(调试 --> )窗口-->模块)。选择加载符号并选择您的 pdb
如果您不确定要做什么,请重建所有内容并运行
oooops 。我没有正确阅读你的帖子,我假设你使用的是 Visual Studio。不管怎样,如果你没有,只需在 IDE 中找到需要设置符号的位置并检查那里。
there are a few solutions. The problem is that the symbols loaded dont match the executable.
1) Make sure the exe you are attached to have its PDB's in the same directory and its the same version
2) make sure your source code is the same version as well
3) when debugging , open the modules window (debug --> windows-->modules). Choose load symbols and choose your pdb
If your unsure on what to do, then rebuild everything and run
oooops . i didnt read your post properly, i assumed your using visual studio. Anyway, if your not , just find where in your IDE you need to set the symbols and check there.
另一个问题是断点可能被设置为空行。
Another issue is that the breakpoint is that it may be set to a blank line.
有时,如果我打开另一个 Visual Studio 实例以及我尝试调试的实例,它就会出现,特别是当我在另一个实例中进行调试时。
Sometimes if I have another instance of Visual Studio open as well as the one I'm trying to debug with, it plays up, especially if I've been debugging in that other one.