Debugging: Stop on first executed line

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?
 
G

Guest

What I want to do would be equivalent to setting a break point on the first
line of each method in the code page.
 
R

Ray Costanzo

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
 
L

Lloyd Sheen

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
 
G

Guest

" 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?
 
B

Beemer Biker

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
======================================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top