简体   繁体   English

Visual Studio 2010-调试断点

[英]Visual Studio 2010 - Debug Breakpoint

Ive just created a new web site project , added a few lines of code in my .cs file set a break point, and nada, website works, but debug point is not hit. Ive刚刚创建了一个新的网站项目,在我的.cs文件中添加了几行代码来设置断点,并且nada网站可以正常工作,但是调试点未命中。 Any ideas? 有任何想法吗?

Im starting the project with Debugging, running on windows 7 64bit 我用调试启动项目,在Windows 7 64bit上运行

thanks 谢谢

Debugging with edit and continue in .net while running 64 bit code is not possible. 在运行64位代码的同时,无法在.net中进行编辑调试并继续。 Switch to forced x86 to start debugging. 切换到强制x86以开始调试。

Are you running in debug mode? 您是否在调试模式下运行? Check out the configuration under project properties -> build, make sure it is running under "any cpu" and with debug configuration 在项目属性->构建下签出配置,确保它在“ any cpu”下运行并带有调试配置

Are you running VS as Administrator? 您是否以管理员身份运行VS? If not Try Run As Administrator option. 如果不是,请尝试以管理员身份运行选项。

Have you enabled debug in the web.config? 您是否在web.config中启用了调试功能? If so you have to have debug true as below. 如果是这样,则必须具有如下所示的debug true。 Normally VS asks to enable debug at the first time if you are trying to run in debug mode. 通常,如果您尝试在调试模式下运行,VS会在第一时间要求启用调试。 在此处输入图片说明

<system.web>
    <compilation debug="true">

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM