Debug Step into another form

G

Guest

Hi everyone, i'm workin with vb.net 2003 and i using the debug step into, but
when i call a form within another the debugger doesn't go to the form that i
call, how do i solve this, without putting a breakpoint.

SC.
 
A

Armin Zingler

SC said:
Hi everyone, i'm workin with vb.net 2003 and i using the debug step
into, but when i call a form within another the debugger doesn't go
to the form that i call, how do i solve this, without putting a
breakpoint.


Debug into what? Which method of the Form do you call?


Armin
 
G

Guest

i just want to debug step by step in a form, but when i call some other form
with the sentence:

form.ShowDialog()

the debug cursor doesn't navigate to that form, i mean only when i exit that
form the debugger starts again.
 
A

Armin Zingler

Sergio Cifuentes said:
i just want to debug step by step in a form, but when i call some
other form with the sentence:

form.ShowDialog()

the debug cursor doesn't navigate to that form,

ShowDialog does not belong to your source code, hence the debugger can not
step into it. You could only step into the disassembly, but the method is
part of the Framework and not of your project.

The debugger can only stop at executable lines. In which line do you want it
to stop?

i mean only when i
exit that form the debugger starts again.


Armin
 
G

Guest

Thanks Armin, what i want is to follow all the program logic since the error
is in logic, i guess i'll have to put some breakpoints isn't it?

the error is in the second form, my first form is a login form, so if i
debug with the step into i only debug my login form, and what i want is to
debug the second form.
 
A

Armin Zingler

Sergio Cifuentes said:
Thanks Armin, what i want is to follow all the program logic since
the error is in logic, i guess i'll have to put some breakpoints
isn't it?

the error is in the second form, my first form is a login form, so
if i debug with the step into i only debug my login form, and what i
want is to debug the second form.

Unfortunately, in VB 2003, you have to set breakpoints.

In VB 2005, you can set a breakpoint at ShowDialog. Then, when you press F8
(or whatever key is single step in your IDE), the IDE stops at any source
code line that is first executed in the Form.


Armin
 

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

Top