1

I have c# class library that it is a part of a big web site. After build, generated dll file copy to bin folder automatically by post-build event command line:

copy $(TargetPath) "C:\MyWebSite\bin"

My web site run under IIS and I want to debug my class library that its in a separated solution. How can I debug it?

Hadi Sharifi
  • 1,497
  • 5
  • 18
  • 28
  • Please try to use the search for something like "debug asp.net site in iis", which will yield results like [How do I attach the debugger to IIS instead of ASP.NET Development Server?](http://stackoverflow.com/questions/210250/how-do-i-attach-the-debugger-to-iis-instead-of-asp-net-development-server). :) – CodeCaster Apr 13 '14 at 07:48

1 Answers1

2

In solution with your DLL which you want to debug, set break point and choose from menu Debug - Attach to Process..., then choose w3wc process with your site pool

Lanorkin
  • 7,310
  • 2
  • 42
  • 60
  • So I did, first ensuring that all projects where up to date with respect to build version. Then the breakpoint says: "The breakpoint will not currently be hit. No symbols have been loaded for this document.". Any ideas? – Mike de Klerk Jan 29 '18 at 13:28
  • Did you copy *.pdb to output? – Lanorkin Jan 29 '18 at 13:30
  • 1
    I had to uncheck `Enable Just My Code`. https://msdn.microsoft.com/en-us/library/dn457346.aspx – Mike de Klerk Jan 31 '18 at 10:20