1
votes

I am trying to debug my production website using the code on my local system. I am using VS2010, and tried all sorts of things still didn't work. I tried using VS Development Server, and tried using IIS still didn't work. When I attach the process debugger starts but break points were not hitting. I tried attaching process to W3wp process, and tried attaching it to IE also. Still its not hitting break points. Any idea whats causing this. Thanks

2
If you haven't accessed the site, the process would not have loaded your assemblies into memory and the debugger will think you can't put a break point anywhere... - Peter Ritchie
You might have old dll and pdb files cached. Check the gac - MilkyWayJoe
Do you mean you're trying to debug your production website remotely? I.e. you want to make a request against the production website and then break into the code on your local system? Or do you just mean that you are debugging the production version of your code, running on localhost? - Jordan Rieger
Yes, I want to debug the production website remotely. How can I make a request against the production website. - Henry

2 Answers

0
votes

What you want to do is called "Remote Debugging".

Here is an MSDN link to get you started: MSDN

0
votes

Try clearing the settings of Visual Studio Tools->Import and Export Settings Wizard->Reset all settings->No…->next and set it

One more option, which worked for me is to open the VS in Safe Mode. It will 100% work: Open Windows Explorer, and navigate to \Common7\IDE; Devenv /SafeMode: Launches the IDE in safe mode loading minimal windows.