I want to debug my code running in a Sitecore CM Docker container. When I attach my debugger, it never breaks at my breakpoints and hovering over them always says
The breakpoint will not currently be hit. No symbols have been loaded for this document.
Why won't it attach properly?
How I attach to process
Open the Containers window (View menu -> Other Windows -> Containers)
Right-click on my CM container and click Attach to Process
Select w3wp.exe and click Attach
Mouse over my breakpoint and see "The breakpoint will not currently be hit. No symbols have been loaded for this document."
What else I've tried
- Ensuring I have the DEBUG constant defined and Full debugging information enabled on my project for my build configuration
- Rebuilding the solution
- Verifying that the *.pdb files have been deployed to the container's
bin
directory