Home All Groups Group Topic Archive Search About

Wierd .NET Debugging behavior...

Author
23 May 2006 9:02 PM
Tom
We are experiencing some wierd debugging behavior. What happens is
that, during debugging with VS 2003, the debugger seems to 'skip'
statements that are associated with database operations. For instance,
I can be single-stepping through a VB.NET program, and once I hit a DB
related statement (such as setting command parameters, executing a data
reader, etc) the debugger will simply 'skip' ahead a number of
statements (if not all the way to the end unless a breakpoint has been
assigned before this). The code it 'skips' actually runs - it just no
longer single-steps through it. This only occurs with DB related
statements, and it is NOT consistant (i.e. some statements it single
steps through fine, others it exhibit this skipping issue). I know it
is not my machine because others in our group have experienced the same
thing.

Now, we use Oracle and recently installed the Oracle 10g ODP client,
and that is when this wierd issue began. So it may be an ODP issue, but
I thought I would start with one of the .NET newsgroups first.  Any
ideas? Thanks in advance.

Chimp (Tom)

--

Author
24 May 2006 8:35 AM
Cor Ligthert [MVP]
Tom,

Often helps in this to empty the generated code in the debug folder and
start again.

I hope this helps,

Cor

Show quoteHide quote
"Tom" <tom@nospam.com> schreef in bericht
news:uyoT3wqfGHA.764@TK2MSFTNGP03.phx.gbl...
> We are experiencing some wierd debugging behavior. What happens is
> that, during debugging with VS 2003, the debugger seems to 'skip'
> statements that are associated with database operations. For instance,
> I can be single-stepping through a VB.NET program, and once I hit a DB
> related statement (such as setting command parameters, executing a data
> reader, etc) the debugger will simply 'skip' ahead a number of
> statements (if not all the way to the end unless a breakpoint has been
> assigned before this). The code it 'skips' actually runs - it just no
> longer single-steps through it. This only occurs with DB related
> statements, and it is NOT consistant (i.e. some statements it single
> steps through fine, others it exhibit this skipping issue). I know it
> is not my machine because others in our group have experienced the same
> thing.
>
> Now, we use Oracle and recently installed the Oracle 10g ODP client,
> and that is when this wierd issue began. So it may be an ODP issue, but
> I thought I would start with one of the .NET newsgroups first.  Any
> ideas? Thanks in advance.
>
> Chimp (Tom)
>
> --
>
Author
5 Jun 2006 10:17 PM
Tom
Cor: I tried this but unfortunately it didn't seem to help. Even tried
another suggestion and removed then re-added the reference to Oracle
ODP - still no luck. And it isn't just me - others have experienced the
same issue at my workplace.

Any other ideas?

Tom

--

Cor Ligthert [MVP] wrote:

Show quoteHide quote
> Tom,
>
> Often helps in this to empty the generated code in the debug folder
> and start again.
>
> I hope this helps,
>
> Cor
>
> "Tom" <tom@nospam.com> schreef in bericht
> news:uyoT3wqfGHA.764@TK2MSFTNGP03.phx.gbl...
> > We are experiencing some wierd debugging behavior. What happens is
> > that, during debugging with VS 2003, the debugger seems to 'skip'
> > statements that are associated with database operations. For
> > instance, I can be single-stepping through a VB.NET program, and
> > once I hit a DB related statement (such as setting command
> > parameters, executing a data reader, etc) the debugger will simply
> > 'skip' ahead a number of statements (if not all the way to the end
> > unless a breakpoint has been assigned before this). The code it
> > 'skips' actually runs - it just no longer single-steps through it.
> > This only occurs with DB related statements, and it is NOT
> > consistant (i.e. some statements it single steps through fine,
> > others it exhibit this skipping issue). I know it is not my machine
> > because others in our group have experienced the same thing.
> >
> > Now, we use Oracle and recently installed the Oracle 10g ODP client,
> > and that is when this wierd issue began. So it may be an ODP issue,
> > but I thought I would start with one of the .NET newsgroups first.
> > Any ideas? Thanks in advance.
> >
> > Chimp (Tom)
> >
> > -- 



--
Author
6 Jun 2006 6:37 AM
Cor Ligthert [MVP]
Tom,

Never did this with ASPNET. If an not catched error is thrown, than in my
idea the program is stopped and goes on with the browser.

Can you try to change while your application is loaded using the Debug menu
the exceptions.
You can set them in a lot of ways, and even very selective, even can you
tell to pass those.

Cor

Show quoteHide quote
"Tom" <tom@nospam.com> schreef in bericht
news:%23JnCj3OiGHA.1508@TK2MSFTNGP04.phx.gbl...
> Cor: I tried this but unfortunately it didn't seem to help. Even tried
> another suggestion and removed then re-added the reference to Oracle
> ODP - still no luck. And it isn't just me - others have experienced the
> same issue at my workplace.
>
> Any other ideas?
>
> Tom
>
> --
>
> Cor Ligthert [MVP] wrote:
>
>> Tom,
>>
>> Often helps in this to empty the generated code in the debug folder
>> and start again.
>>
>> I hope this helps,
>>
>> Cor
>>
>> "Tom" <tom@nospam.com> schreef in bericht
>> news:uyoT3wqfGHA.764@TK2MSFTNGP03.phx.gbl...
>> > We are experiencing some wierd debugging behavior. What happens is
>> > that, during debugging with VS 2003, the debugger seems to 'skip'
>> > statements that are associated with database operations. For
>> > instance, I can be single-stepping through a VB.NET program, and
>> > once I hit a DB related statement (such as setting command
>> > parameters, executing a data reader, etc) the debugger will simply
>> > 'skip' ahead a number of statements (if not all the way to the end
>> > unless a breakpoint has been assigned before this). The code it
>> > 'skips' actually runs - it just no longer single-steps through it.
>> > This only occurs with DB related statements, and it is NOT
>> > consistant (i.e. some statements it single steps through fine,
>> > others it exhibit this skipping issue). I know it is not my machine
>> > because others in our group have experienced the same thing.
>> >
>> > Now, we use Oracle and recently installed the Oracle 10g ODP client,
>> > and that is when this wierd issue began. So it may be an ODP issue,
>> > but I thought I would start with one of the .NET newsgroups first.
>> > Any ideas? Thanks in advance.
>> >
>> > Chimp (Tom)
>> >
>> > --
>
>
>
> --
>