Debugging: Stop on first executed line

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In debug mode, I want to be able to stop on the first executed line in my
aspx.vb code page without setting a specific break point. Is there a way to
do that?
 
What I want to do would be equivalent to setting a break point on the first
line of each method in the code page.
 
Wouldn't that kinda be like telling someone to meet you somewhere but not
specifying where and expecting the person to just magically know? :]

Why not just put a breakpoint on Page_Load?

Ray at work
 
Ray Costanzo said:
Wouldn't that kinda be like telling someone to meet you somewhere but not
specifying where and expecting the person to just magically know? :]

Why not just put a breakpoint on Page_Load?

Ray at work

Jerry J said:
In debug mode, I want to be able to stop on the first executed line in my
aspx.vb code page without setting a specific break point. Is there a way
to
do that?

Did you try F10/F11

LS
 
" Wouldn't that kinda be like telling someone to meet you somewhere but not
specifying where and expecting the person to just magically know? "

No, it would be more like having a set of places to meet and sending a
different person to all of the places incase I show up in one of them.


" Why not just put a breakpoint on Page_Load?"

Because after page_load an event handler could be called and i want to break
there. I guess I asked the wrong question then. What I really want is to
stop in an event handler without having to figure out which event handler is
going to be called.
--
Jerry J


Ray Costanzo said:
Wouldn't that kinda be like telling someone to meet you somewhere but not
specifying where and expecting the person to just magically know? :]

Why not just put a breakpoint on Page_Load?

Ray at work

Jerry J said:
In debug mode, I want to be able to stop on the first executed line in my
aspx.vb code page without setting a specific break point. Is there a way
to
do that?
 
Jerry J said:
In debug mode, I want to be able to stop on the first executed line in my
aspx.vb code page without setting a specific break point. Is there a way
to
do that?

I assume you are trying to debug a startup problem and want to step thru the
code until the bug is hit?

I tried to do the same thing once (stop on the first line) but it turned out
I had an error in the properties page of a control and the error occured
during the initialization before any VB or C# user code got executed.

As another poster suggested, page_load is a good start.


--
======================================================================
Joseph "Beemer Biker" Stateson
http://TipsForTheComputingImpaired.com
http://ResearchRiders.org Ask about my 99'R1100RT
======================================================================
 
Back
Top