blank form when debugging

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

Guest

vb VS 2003
Hi all: thanks to all in advance for your responses.
my app displays the form , then when it reaches a debbuging point the form
is blanked, (it just shows the frame around the form) I need to see the info
that should be displayed . I tried me.refresh before the debugging point.
Q: 1. when the refresh actually refreshes the form?
Q: 2. what do i need to do to see my form at debugging time? (works in
normal mode)
the code is: when click a btn, does a loop to shk the database with a
System.Threading.Thread.CurrentThread.Sleep(3000) '3sec

Thanks
 
raulavi said:
vb VS 2003
Hi all: thanks to all in advance for your responses.
my app displays the form , then when it reaches a debbuging point the form
is blanked, (it just shows the frame around the form) I need to see the info
that should be displayed . I tried me.refresh before the debugging point.
Q: 1. when the refresh actually refreshes the form?
Q: 2. what do i need to do to see my form at debugging time? (works in
normal mode)
the code is: when click a btn, does a loop to shk the database with a
System.Threading.Thread.CurrentThread.Sleep(3000) '3sec

Thanks

You can not break and see then form. The form need to call the paint
event in order to display the contents, since you have stopped the
execution, then it can't refresh. You will need to find some other way
to see the contents, such as looking at the form variables or don't do a
breakpoint.

Chris
 
At least...i should see what it was before stopping for debugging. correct?
why is blanked.
 
raulavi said:
At least...i should see what it was before stopping for debugging.
correct?
why is blanked.

It is blank because the program does not run if you go into debug mode. If
it does not run it also does not update the form's content.



Armin
 
Hi Raul
At least...i should see what it was before stopping for debugging.
correct?
why is blanked.

What do you want to "see" on the form ? If it is some value associated
with a control, I'm sure you can query that using the Command window.
Also, the Autos and Locals window show the values of variables in
neighbouring lines from the breakpoint.

Regards,

Cerebrus.
 
Cerebrus said:
Hi Raul


What do you want to "see" on the form ? If it is some value
associated with a control, I'm sure you can query that using the
Command window. Also, the Autos and Locals window show the values of
variables in neighbouring lines from the breakpoint.

I also miss it sometimes because it was different in VB6. The reason is
that, using VB6, everything was running in the same process and the VB6
IDE/runtime was actually processing the messages. This includes painting the
Form. So, breaking meant that only the interpretion of the p-code by the
IDE/runtime has stopped but not the process itself (vb6.exe) has been
interrupted. Everything was under control of the IDE and the developers
(probably) decided what is safe to do even in break mode. Painting partially
was, handling click events, for example, was not. Now, in VB.Net, there are
running two different processes, and the own application is really
interrupted by a debugger.


Armin
 
Back
Top