简体   繁体   English

调试器无法在 Visual Studio 中工作

[英]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:我正在研究的解决方案具有以下架构:

  1. "Query" project - written with angularjs 1.4 “查询”项目 - 用 angularjs 1.4 编写
  2. "Login" project - written with angularjs 1.4 “登录”项目 - 用 angularjs 1.4 编写
  3. More back-end projects - written with c#/web-api更多后端项目 - 用 c#/web-api 编写

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:到目前为止我尝试过的事情:

  • clean, build, rebuild the solution;清理、构建、重建解决方案;
  • attaching to process from VS.从 VS 附加到进程。 I attached to all IIS Express processes but with no luck;我附加到所有 IIS Express 进程,但没有运气;
  • closing VS and deleting my bin and obj folders from all projects;关闭 VS 并从所有项目中删除我的 bin 和 obj 文件夹;
  • restarting the machine;重新启动机器;

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 答案,也许会有所帮助:

  1. 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,现在无法在调试中遇到断点

  2. Manual check of the Symbol Load Information: Fixing "The breakpoint will not currently be hit. No symbols have been loaded for this document."手动检查符号加载信息: 修复“当前不会命中断点。没有为此文档加载符号。”

  3. 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.

相关问题 调试器关键字在Visual Studio中的javascript文件中不起作用 - debugger keyword not working in javascript file in Visual Studio Visual Studio 2012 JavaScript调试器停止工作 - Visual Studio 2012 javascript debugger stopped working 在网站上显示视频,可以在Visual Studio调试器中使用,但不能在发行版中使用 - Display videos in website, working in Visual Studio debugger but not in Release version Visual Studio 2017 调试器在 Office Excel 加载项 Typescript 转换后不起作用 - Visual studio 2017 debugger not working after Office Excel Add-in Typescript conversion 为什么在调试ASP.NET项目期间Visual Studio调试器为何停止工作,提示“无法跳转” - Why does the Visual Studio Debugger stop working during debugging ASP.NET project saying ~“Jump not possible” 在Visual Studio(或其他JS调试器)中调试Javascript - Debugging Javascript in Visual Studio (or other JS debugger) Visual Studio将{…}显示为调试器中Javascript变量的值 - Visual Studio showing {…} as value for Javascript variable in debugger 在VIsual Studio中使用javascript - Working with javascript in VIsual Studio Javascript无法在Visual Studio中使用 - Javascript not working Visual Studio 删除Visual Studio / Visual Web Developer 2010 Express调试器并在浏览器的调试器中调试JavaScript - Removing the Visual Studio / Visual Web Developer 2010 Express debugger and debugging JavaScript in the browser's debugger
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM