为什么调试器不起作用 [英] Why the debugger doesn't work
问题描述
我的调试器不工作,
我正在放置一个断点,但在运行时,visual studio不会停止在breakPoint上。
如何修复它?
我的应用程序没有什么特别的,它是一个简单的Web应用程序。
我正在使用visual studio 2005。
My debugger is not working,
I'm putting a breakpoint, but in run, time visual studio doesn't stop on the breakPoint.
How to fix it?
There is nothing special in my application, it is a simple web application.
I am using visual studio 2005.
我已经创建了一个新的Web应用程序项目,而在default.aspx页面上有一个双向控件,在default.cs上,我正在填充一个数据表,并将其作为数据源的网格。
我能够调试它,突然,调试器永远不会被击中。
请注意,调试器正在加载事件。
I've created a new web application project, and on the default.aspx page there is a obout grid control, on the default.cs i am filling a datatable and putting it as datatasource for the grid.
I was able to debug it, suddenly the debugger is never hit.
note that the debugger is on the load event.
推荐答案
查找解决问题的步骤:
- 从C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET文件中删除ASP.NET临时文件
- 将构建配置更改为从项目属性进行调试。
- 从项目中删除bin文件夹。
- 检查是否设置了编译调试在web.config
- iisreset
- 重建项目。
- Delete ASP.NET temporary files from C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
- Change build configuration to debug from project properties.
- Delete bin folder from your project.
- Check if compilation debug is set to true in the web.config
- iisreset
- Rebuild the project.
这篇关于为什么调试器不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!