为什么调试器不会在我的ASP.NET应用程序中断点处停止? [英] Why would the debugger not be stopping at a breakpoint in my ASP.NET application?

查看:102
本文介绍了为什么调试器不会在我的ASP.NET应用程序中断点处停止?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图调试大型ASP.NET应用程序。

I'm trying to debug a large ASP.NET application.

我设置一个断点在Default.aspx.cs在Page_Load中的第一行。

I set a breakpoint on the first line in Page_Load in Default.aspx.cs.

当我启动应用程序,我的断点简单地变成了红色圆形的轮廓与它的感叹,然后变回一个普通的断点,然后在应用程序启动时没有在以往停我的断点

When I start the application, my breakpoint briefly turns into a red round outline with an exclamation in it, then turns back into a regular breakpoint, then the application starts without ever stopping at my breakpoint.

MSDN告诉我,这个符号表示断点位置尚未加载。所以,我怎么能得到断点位置加载?这是工作几个星期前。什么样的事情可能会导致一个断点不装?

MSDN tells me that this symbol means "the breakpoint location has not been loaded". So how can I get the breakpoint location to load? It was working a couple weeks ago. What kinds of things could cause a breakpoint to "not be loaded"?

我能做些什么,使调试器在我的断点再次停止?

我仍然不能得到通过调试pressing F5的工作,但我可以启动的网站,然后做调试/附加进程进入调试模式。如果有人知道为什么会起作用,但是当我preSS F5它不会工作(调试按钮,甚至没有出现在F5),任何想法将受到欢迎。

I still can't get debugging to work by pressing F5, but I can start the website, then do debug/attach-process to get into debugging mode. If anyone knows why this would work but when I press F5 it would not work (the debugging buttons don't even show up on F5), any ideas would be welcome.

推荐答案

尝试做应用程序完全重建。注意,这是在调试配置。

Try doing a full rebuild on the application. Pay attention that it's in the "Debug" configuration.

据我了解(但我没有这些东西的专家),当调试信息文件(.PDB)是出与真编译的东西同步会发生这种情况。

As far as I understand (but I'm not an expert in these things), this can happen when the debug info files (.PDB) are out of sync with the real compiled thing.

这篇关于为什么调试器不会在我的ASP.NET应用程序中断点处停止?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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