在code断点后面打不 [英] breakpoints in code behind not hit

查看:149
本文介绍了在code断点后面打不的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

常见的问题我猜测,但至今没有解决方案的工作:

common problem I guess, but no solution has worked so far:

我的断点(asp.net 2.0)获得后端组件很好打,但不
在后面的code。

my breakpoints (asp.net 2.0) get hit nicely in "backend" assemblies but not in the code behind.

我甚至可以看到
<%Response.CacheControl =无缓存; %>行被打在我的asp.net主文件
但仍然没有code的后面。

i can even see the <% Response.CacheControl="no-cache"; %> line being hit in my asp.net master file but still not the code behind.

我使用VS 2005,Windows 7的32位。
任何想法还有什么我能检查?

I'm using VS 2005, windows 7 32 bit. Any idea what else could I check?

推荐答案

如果你的code文件比正在对运行编译版本更新(在Web服务器上,无论是IIS或开发服务器) ,断点不会被击中(红色圆圈将是空心的)。

If your code file is newer than the compiled version that is being run against (on the web server, whether it be IIS or the dev server), breakpoints will not be hit (the red circles will be hollow).

试着做一个清洁/重建并看看是否能工程。

Try doing a clean / rebuild and see if that works.

编辑:

我只注意到你的最后一个注释的东西;你说你正在连接到asp.net程序。到过程中您连接?应该W3WP.EXE。

I just noticed something in your last comment; you said you are attaching to the asp.net process. To which process are you attaching? It should be w3wp.exe.

这篇关于在code断点后面打不的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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