2010年的视觉工作室没有出现断点 [英] Break points are not hitting in the visual studio 2010

查看:77
本文介绍了2010年的视觉工作室没有出现断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的asp.net项目中,断点没有达到,即使我已经检查了所有调试设置,也将其运行到调试模式。



当我丢弃时悬停时的断点显示消息

当前不会触发断点。此文档没有加载符号。



先谢谢。

In my asp.net project break points are not hitting, even I have checked all debug settings, running it into debug mode as well.

When I drop a break-point on hover it shows message
"The break point will not currently be hit.No Symbols have been loaded for this document."

Thanks in Advance.

推荐答案

参考:检查列表,使断点点击 [ ^ ]

< a href =http://it.toolbox.com/blogs/programming-life/debugging-net-applications-stopping-the-breakpoint-will-not-currently-be-hit-message-26262>断点不会目前被击中 [ ^ ]
Refer: Check list, to make the breakpoints hit[^]
Breakpoint Will Not Currently Be Hit[^]


以下是Visual Studio不会达到断点的一些原因。

1)项目没有完全构建:为此您清理解决方案并进行重建。

如果没有点击,请点击右击在断点处,在打开的对话框中单击位置和

,选中复选框(允许源代码与原始版本不同




2)断点不在代码执行路径中:为此,请确保将断点放在正确的位置

。将断点放在

的开头事件/方法,不应该在条件或其他地方。另外,立即将

断点放在Page_load中。



3)在应用程序中未启用调试:在web.config中确保

跟随存在:<编译debug =true/>



4)您正在尝试调试非托管代码:

1.从项目属性页面,在调试选项卡中,确保勾选

复选框,启用非托管代码调试



2.从菜单工具 - >选项,导航到调试节点,取消选中

复选框启用我的代码。



3.确保提供正确的dll VC6可执行文件的pdb文件。



如果仍有问题请查看以下链接:

http://blogs.msdn.com /b/sudeepg/archive/2007/08/13/why-the-debugger-will-not-hit-your-breakpoints.aspx [ ^ ]



http://weblogs.asp.net/guybarrette/archive/2008/10 /08/the-breakpoint-will-not-currently-be-hit.aspx [ ^ ]
Following are some of the reasons why your Visual studio will not hit break points.
1) Project is not fully built: For this you clean your solution and make a rebuild.
Still if it is not hitting, right click on the break point, Click Location and
in the dialog that opens, Check the check box (Allow the source code to be
different from original version)

2) The break point is not in the code execution path: For this, ensure you have
put the break point in the right place. Put the break point at the starting of
the event/method, Should not be inside a condition or elsewhere. Also, put the
break point immediately in the Page_load.

3) Debug is not enabled in the application: In your web.config ensure that
following is present:< compilation debug="true"/>

4) You are trying to debug unmanaged code:
1.From the project properties page, in the debug tab, make sure we tick the
checkbox, "Enable unmanaged code debugging"

2.From the menu Tools->Options, navigate to Debugging node, uncheck the
checkbox "Enable Just My Code".

3.Make sure you provide the correct pdb files of the VC6 executable of dll.

Please see the below links if you still have issues:
http://blogs.msdn.com/b/sudeepg/archive/2007/08/13/why-the-debugger-will-not-hit-your-breakpoints.aspx[^]

http://weblogs.asp.net/guybarrette/archive/2008/10/08/the-breakpoint-will-not-currently-be-hit.aspx[^]


PDB时会发生这种情况文件缺失或旧文件未更新。编译的DLL和相应的PDB文件需要具有相同的时间戳。您需要确保DLL上次修改日期和PDB上次修改日期是同步的。 PDB文件是负责帮助您进行调试的文件。



清理解决方案并重建所有文件。这应该与PDB一起创建一个新的DLL。完成后,您应该能够对其进行调试。
This happens when PDB file is missing or an old one, not updated. Compiled DLL and the respective PDB file needs to be of same timestamp. You need to make sure that the DLL last modified date and PDB last modified dates are in sync. PDB files are the one responsible that helps you in debugging.

Clean the solution and rebuild all. This should create a new dll along with PDB. Once done, you should be able to debug it.


这篇关于2010年的视觉工作室没有出现断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆