简体   繁体   中英

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

Any help is highly appreciated.

please run following with admin command prompt.

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

It will list w3wp processes ids with their application pool name. 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.

Make sure you build your application in Debug mode as shown below. 在此输入图像描述 And also at page level also please specify Debug="true".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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