Reputation: 1311
I have a solution that consists of a Class Library project and a remote web site.
I start the debugging and the page comes up and if I make changes to the source I can see them happen on the page that's in the debugger ... but I can have a breakpoint on the first line of the Page_Load and it still won't hit. Same things goes for any breakpoint in the Class Library's codebase.
I've debugged other applications off this server successfully before ... but have hit a wall with this one.
What am I doing wrong?
Both projects have are .NET Framework 4.
Upvotes: 1
Views: 1053
Reputation: 1311
I decided to try a few more things to get this working so I first did a fresh Open >> Web Site ... so that I had a solution with just the remote web site and tried debugging and that worked. So, decided to try living a little dangerously and then added the Class Library project back and tried Debugging again and it worked for both the .aspx.cs files and the .cs ones from the Class Library!
Don't ask me to explain it ... the only thing I did differently is that the first time around I started with the Class Library, added the remote site and then set the Web site as the Startup project. Should work the same, you'd think ... but I'm not gonna question it
Upvotes: 1
Reputation: 9505
Have you tried to use internet explorer ? if your in an different navigator.. you must attach that navigator processus to the debugger in order to debug.
Upvotes: 0
Reputation: 41767
If the breakpoint isn't marked as a full red circle, either no symbols have been loaded for the type or the code you're debugging is different to what you have in your editor.
If the latter, you can right click the breakpoint and select allow source to be different... checkbox
Upvotes: 1