PC Review


Reply
Thread Tools Rate Thread

Debugging not working correctly

 
 
PeteOlcott
Guest
Posts: n/a
 
      15th Oct 2008
I set a breakpoint in a .NET function, and the F10 [Step Over] debug
option never reaches many of the source lines in this function. The
lines that it skips are not part of a conditional expression thus
should always get invoked.
 
Reply With Quote
 
 
 
 
Ciaran O''Donnell
Guest
Posts: n/a
 
      15th Oct 2008
Is it possible that an exception occurs before those lines and therefore the
execution doesnt get that far?
--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com


"PeteOlcott" wrote:

> I set a breakpoint in a .NET function, and the F10 [Step Over] debug
> option never reaches many of the source lines in this function. The
> lines that it skips are not part of a conditional expression thus
> should always get invoked.
>

 
Reply With Quote
 
PeteOlcott
Guest
Posts: n/a
 
      15th Oct 2008
On Oct 15, 10:57*am, Ciaran O''Donnell
<CiaranODonn...@discussions.microsoft.com> wrote:
> Is it possible that an exception occurs before those lines and therefore the
> execution doesnt get that far?
> --
> Ciaran O''Donnellhttp://wannabedeveloper.spaces.live.com
>
>
>
> "PeteOlcott" wrote:
> > I set a breakpoint in a .NET function, and the F10 [Step Over] debug
> > option never reaches many of the source lines in this function. The
> > lines that it skips are not part of a conditional expression thus
> > should always get invoked.- Hide quoted text -

>
> - Show quoted text -


No because lines after the lines that were ignored were still reached.
 
Reply With Quote
 
Adam Benson
Guest
Posts: n/a
 
      15th Oct 2008
Are you absolutely sure the code that's being run (.exe and .dll's I mean,
not source code) matches your source code?

"PeteOlcott" <(E-Mail Removed)> wrote in message
news:2a0dca19-8634-4301-92d7-(E-Mail Removed)...
>I set a breakpoint in a .NET function, and the F10 [Step Over] debug
> option never reaches many of the source lines in this function. The
> lines that it skips are not part of a conditional expression thus
> should always get invoked.



 
Reply With Quote
 
PeteOlcott
Guest
Posts: n/a
 
      15th Oct 2008
On Oct 15, 11:36*am, "Adam Benson"
<Adam.Ben...@NOSPAMMYSPAM.omnibus.co.uk> wrote:
> Are you absolutely sure the code that's being run (.exe and .dll's I mean,
> not source code) matches your source code?
>
> "PeteOlcott" <PeteOlc...@gmail.com> wrote in message
>
> news:2a0dca19-8634-4301-92d7-(E-Mail Removed)...
>
>
>
> >I set a breakpoint in a .NET function, and the F10 [Step Over] debug
> > option never reaches many of the source lines in this function. The
> > lines that it skips are not part of a conditional expression thus
> > should always get invoked.- Hide quoted text -

>
> - Show quoted text -


Yes, it does exactly the same thing immediately after a Rebuild
Solution.
 
Reply With Quote
 
Adam Benson
Guest
Posts: n/a
 
      16th Oct 2008
Weird. The only other thing that occurs to me is are the pdb's being
generated? And are you running the debug build? Sounds like a daft question,
I know, but once or twice I've started up a solution and for some reason its
been set to release but I didn't spot it.

What does the code look like?

AB

"PeteOlcott" <(E-Mail Removed)> wrote in message
news:f2155ab0-d6b7-438e-a6db-(E-Mail Removed)...
On Oct 15, 11:36 am, "Adam Benson"
<Adam.Ben...@NOSPAMMYSPAM.omnibus.co.uk> wrote:
> Are you absolutely sure the code that's being run (.exe and .dll's I mean,
> not source code) matches your source code?
>
> "PeteOlcott" <PeteOlc...@gmail.com> wrote in message
>
> news:2a0dca19-8634-4301-92d7-(E-Mail Removed)...
>
>
>
> >I set a breakpoint in a .NET function, and the F10 [Step Over] debug
> > option never reaches many of the source lines in this function. The
> > lines that it skips are not part of a conditional expression thus
> > should always get invoked.- Hide quoted text -

>
> - Show quoted text -


Yes, it does exactly the same thing immediately after a Rebuild
Solution.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debugging not working correctly PeteOlcott Microsoft VC .NET 5 20th Oct 2008 05:47 PM
Debugging is not working Santel Microsoft ASP .NET 3 23rd Jan 2008 03:59 PM
Debugging, dont work correctly How do i Debug my Prgram Microsoft Dot NET Framework 1 23rd Dec 2003 08:26 AM
SQL Debugging Not working as it should Alex Clark Microsoft VB .NET 2 1st Sep 2003 04:27 AM
Debugging not working :-( joe Microsoft Dot NET 2 16th Jul 2003 11:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:48 PM.