[英]Debugger not working in visual studio
My debugger stopped working as expected in Visual Studio Community 2015 (Update 1).我的调试器在 Visual Studio Community 2015(更新 1)中按预期停止工作。
The solution I'm working on has the following architecture:我正在研究的解决方案具有以下架构:
I run the Query project, it checks for session and redirect to Login.我运行查询项目,它检查会话并重定向到登录。 After the login is successful it makes another redirect back to the Query url.
登录成功后,它会再次重定向回查询 url。 Until yesterday I had no issues debugging the whole solution from VS directly.
直到昨天,我直接从 VS 调试整个解决方案都没有问题。 Now the behavior is that the first time I run the "Query" project, my breakpoints get hit.
现在的行为是我第一次运行“查询”项目时,我的断点被击中。 After coming back from Login, no breakpoint is hit.
从登录回来后,没有断点被击中。
Both client-side projects are hosted using IIS Express.两个客户端项目都使用 IIS Express 托管。
Things I tried until now:到目前为止我尝试过的事情:
Also good to mention that I have set in web.config:值得一提的是,我在 web.config 中设置了:
<compilation debug="true"></compilation>
Any hint or idea is highly appreciated.任何提示或想法都受到高度赞赏。
After trying more different solutions, the only thing that worked in my case was to unload/reload the project.在尝试了更多不同的解决方案后,在我的情况下唯一有效的方法是卸载/重新加载项目。 Also, now the breakpoints that I set before the application runs are no longer getting hit, but if I set them after the application started then they work fine.
此外,现在我在应用程序运行之前设置的断点不再受到影响,但是如果我在应用程序启动后设置它们,那么它们可以正常工作。
I can suggest some Stack Overflow answers related to this issue, maybe it helps:我可以建议一些与此问题相关的 Stack Overflow 答案,也许会有所帮助:
New project and just importing the files into it: Upgrade to Visual Sudio 2015 and now can't hit break points in debuging新项目,只需将文件导入其中: 升级到 Visual Sudio 2015,现在无法在调试中遇到断点
Manual check of the Symbol Load Information: Fixing "The breakpoint will not currently be hit. No symbols have been loaded for this document."手动检查符号加载信息: 修复“当前不会命中断点。没有为此文档加载符号。”
Incorrect configuration selected in the debug menu: Visual Studio breakpoints not being hit在调试菜单中选择的配置不正确: 未命中 Visual Studio 断点
In my case (Vs2019) the Microsoft Symbol server was causing the issue.就我而言(Vs2019),Microsoft Symbol 服务器导致了该问题。
It was not being able to attach Local IIS.它无法附加本地 IIS。
Enabling only the NuGet Symbol server and disabling the Microsoft worked for me仅启用 NuGet 符号服务器并禁用 Microsoft 为我工作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.