Break Points not hit in VS 2008

0 views
Skip to first unread message

dougloj

unread,
Nov 23, 2009, 1:28:14 AM11/23/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Hi.

I have an ASP.NET application written in C# running under IIS 7. I've
tried to debug it using VS 2008 w/ SP1 first under Vista Home Premium,
then under XP Pro. Each time, the first break point gets hit, but no
other break points get hit after that.


The break points are there. I do not get a "The breakpoint will not
currently be hit" message. The code gets executed, but the debugger
does not stop at any break points after the first one.

I never had this problem with VS 2005. Does anybody have any ideas
about what might be wrong?


Thanks for the bandwidth.


- Doug

Reuben Bartolo

unread,
Nov 27, 2009, 6:06:22 AM11/27/09
to dotnetde...@googlegroups.com
Could it be you are running in Release mode, and due to compiler optimisations those areas are not being run?

E.g.

if( condition == false)
{
int i = 0; // Break point here <- This breakpoint will not be hit, since it is useless to create an unused local variable.
Reply all
Reply to author
Forward
0 new messages