简体   繁体   English

附加调试器 - 当前不会触发断点。 没有为此文档加载任何符号

[英]Attach Debugger - The breakpoint will not be currently hit. No symbols have been loaded for this document

I'm trying to debug code deployed on Azure Websites by attaching debugger. 我正在尝试通过附加调试器来调试部署在Azure网站上的代码。 When I put breakpoint anywhere in code, this displays similar error as given in the image. 当我在代码中的任何位置放置断点时,这会显示与图像中给出的类似的错误。

The breakpoint will not be currently hit. No symbols have been loaded for this document.

在此输入图像描述

When I debug locally this works totally fine. 当我在本地调试时,这完全正常。 I see ton of suggested answers while posting here but none of them helped me. 我在这里发帖时看到了很多建议的答案,但没有一个能帮助我。 As I said, debugging works locally totally okay but not by attaching debugger. 正如我所说,调试在本地工作完全没问题,但不是通过附加调试器。

Development Environment: Visual Studio 2015 Enterprise on Windows 10. 开发环境:Windows 10上的Visual Studio 2015 Enterprise。

Any help is highly appreciated. 任何帮助都非常感谢。

please run following with admin command prompt. 请使用admin命令提示符运行以下命令。

C:\\Windows\\System32\\inetsrv>appcmd list wp C:\\ Windows \\ System32 \\ inetsrv> appcmd list wp

It will list w3wp processes ids with their application pool name. 它将列出w3wp进程ID及其应用程序池名称。 Run Visual Studio with Admin, and open your project, press ctrl+alt+p and attach w3wp from list with the id displayed in command prompt. 使用Admin运行Visual Studio,打开项目,按ctrl + alt + p并从列表中附加w3wp,并在命令提示符中显示id。

Make sure you build your application in Debug mode as shown below. 确保在Debug模式下构建应用程序,如下所示。 在此输入图像描述 And also at page level also please specify Debug="true". 而且在页面级别也请指定Debug =“true”。

暂无
暂无

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

相关问题 当前不会命中断点。 未在 Unity 中为该文档加载任何符号 - The breakpoint will not currently be hit. No symbols have been loaded for this document in Unity VS 2010远程调试器断点当前不会被命中。 没有为此文档加载任何符号 - VS 2010 remote debugger breakpoint will not currently be hit. No symbols have been loaded for this document VS-2012 :当前不会命中断点。 尚未为该文档加载任何符号 - VS-2012 : Breakpoint will not currently be hit. No symbols have been loaded for this document 断点当前不会被击中。在Silverlight应用程序中没有为此文档加载任何符号 - The breakpoint will not currently be hit. No symbols have been loaded for this document in a Silverlight application VS 2010,NUNit和“断点目前不会被击中。 没有为此文档加载任何符号“ - VS 2010, NUNit, and “The breakpoint will not currently be hit. No symbols have been loaded for this document” VS2015 目前不会命中断点。 没有为此文档加载任何符号 - VS2015 The breakpoint will not currently be hit. No symbols have been loaded for this document VS 2013断点目前不会被击中。 没有为此文档加载任何符号 - VS 2013 the breakpoint will not currently be hit. no symbols have been loaded for this document 断点当前不会被命中。 没有为该文档加载任何符号。 删除dll时 - The breakpoint will not currently be hit. No symbols have been loaded for this document. when debussing dll 此断点当前不会被命中。 在项目 asp.net web forms 中没有为此文档加载任何符号 - this breakpoint will not currently be hit. no symbols have been loaded for this document in project asp.net web forms 如何补救“当前不会命中断点。没有为该文档加载任何符号。” 警告? - How do I remedy "The breakpoint will not currently be hit. No symbols have been loaded for this document." warning?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM