I deployed my MVC project to IIS and now I need to debug code by attach process but it not work.
These are steps that I did to debug:
- Run my solution with Visual Studio Pro 2017 as Admin
- Debug -> Attach to process...
- Attach w3wp.exe process
- Restart my site in IIS Manager
- Run my site in browsers to debug
After above steps, my breakpoints always warning:
The breakpoint will not current be hit. No symbols have been loaded for this document.
I can debug my code in the other PC with above steps but this way have problem with my laptop.
How can I fix this?
Thanks all.
I resolved my problem by:
- Debug -> Options...
- Uncheck at "Enable Just My Code"
I installed the newest Visual Studio Professional 2017 (15.8.5) to my laptop. In this version, above option is checked as default.