6

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

  1. Open the Containers window (View menu -> Other Windows -> Containers)

  2. Right-click on my CM container and click Attach to Process

    Containers window with attach to process menu item

  3. Select w3wp.exe and click Attach

    Attach to process window

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

  1. Ensuring I have the DEBUG constant defined and Full debugging information enabled on my project for my build configuration
  2. Rebuilding the solution
  3. Verifying that the *.pdb files have been deployed to the container's bin directory
13

You need to set the code type to Managed (.NET 4.x) code in the Attach to: section of the Attach to Process dialog in order for debugging to work. Automatic does not load symbols.

Attach to process dialog with Managed (.NET 4.x) code type selected

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.