Reputation: 2480
I have trouble debugging ASP.NET MVC (1 & 2) in VS2008. Most often stepinto and stepover is just like hitting run. This also happens even if there is a breakpoint in the code on the next line. I've experienced this problem all along using MVC and others working in my team experience it as well.
Does anyone else have this problem? Is this a bug in VS2008 or is there a solution? Does the debugger work better with MVC when using VS2010?
Upvotes: 1
Views: 206
Reputation: 12841
I don't know what causes it (and it can be very sporadic), but I have experienced what you describe using VS2008. Never using VS2010 though, so that indicates to me that there have been some improvements made somewhere.
Upvotes: 1
Reputation: 7574
I've never had a problem like this with VS 2008. Check web.config file for if it has debug setting set to true. You can also debug your application via IIS. Set IIS working directory to the folder with your project. Enter in browser http://localhost. Your start page should open, then you can attach with debuger to w3wp.exe process.
Upvotes: 0
Reputation: 15853
The debugger works fine in VS2010 for me and at least 3 other colleagues of mine. I didn't use MVC in VS2008, so I can't comment on that.
Upvotes: 0