调试时断点没有打

sub*_*ash 5 c# asp.net

可能的确切重复:

VS.NET的当前断点的原因不会被警告?
为什么Visual Studio有时不会进入我的断点?
为什么调试器不能在我的ASP.NET应用程序中的断点处停止?

在调试时,修改后的源代码没有为特定的aspx页面命中断点,并且在断点处显示以下错误

"破解点目前不会被攻击.源代码与原始版本不同"

但对于其他页面它工作正常.

Zia*_*man 13

它对我有用.试试这个.

首先尝试通过右键单击项目重建项目>重建如果这不起作用,请尝试清理项目(在项目上单击鼠标右键>清除)

如果这不起作用,请检查:

Right mouse click your project
select [Properties]
select the [Build] tab
make sure [Define DEBUG constant] and [Define TRACE constant] are checked
Click the [Advanced] button at the bottom of the Build tabpage
Make sure that [Debug Info:] is set to [full]
Click [OK] and rebuild the project ;-)
Run Code Online (Sandbox Code Playgroud)

希望对你有用!(步骤6生成.pdb文件,这些是调试符号)

  • 这对我来说也很有效,比我选择的答案简单得多。 (2认同)

Ram*_*Vel 5

有时,如果从网络文件夹复制了源代码,则会使符号设置混乱。以下解决方案每次都对我有用

  • 在调试模式下,选择debug-> windows-> modules
  • 检查您的dll symbolStatus。确保已将其加载到项目中(我现在确定状态未加载)
  • 右键单击您的dll,单击符号设置。
  • 并手动添加符号路径(.pdb文件路径)
  • 再次右键单击dll,然后单击加载符号

希望这可以帮助