4

I have a server running my web app through IIS. I have visual studio locally, I am attaching to the remote w3wp.exe process with no issues, but my breakpoints are not being hit because my symbols are not loaded.

What am I missing?

What am i missing?

Update: Should I be debugging Native or Managed? When I do Native, the Modules window shows a ton of windows dll's that all fail to open the PDB. Should I be concerned? I do not see my dll in the list. When I use Managed, the modules window is completely empty.

6
  • Have you tried coping the PDB files locally? Commented Aug 3, 2012 at 20:56
  • I have the pdb files locally, but my understanding is that to debug remotely you have to point the symbols file at the remote dir. Commented Aug 4, 2012 at 6:44
  • 1
    They don't have to be remote; as long as they're the same PDB files so that the checksum matches. The PDB files will need to know where the source code is; if the PDB files were generated on your local machine, it should have no problem finding the source code. Commented Aug 4, 2012 at 13:52
  • I have now tried with both local and remote paths to no avail Commented Aug 7, 2012 at 14:50
  • When you're attached, if you click Debug/Windows/Modules, you can view the symbol load information for each DLL. You might see information in there that indicates why the symbols could not be loaded. Is there anything useful? Commented Aug 7, 2012 at 14:55

2 Answers 2

3
+500

Found the issue. When I was attaching to the process via the Visual Studio gui, the w3wp.exe process was listed as x86 instead of Managed 4.0. I recreated my app's site in IIS and the process went back to being listed as Managed, which allowed the symbols to be loaded.

Sign up to request clarification or add additional context in comments.

Comments

0

Make sure that you built your project in debug mode. Also, make sure you have sufficient rights for your remote server.

4 Comments

I am publishing in debug mode and see the PDB server side. What do i check rights wise on the server?
When you browser the project folder on the server do you see the pdb files?
I see the one pdb for my project, yes, located in \\192.168.42.10\httpd\html\Chat\bin
You don't need debug mode for symbols to work; you just need the symbols.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.