RE: Step by Step skips large chunks of code



Hi Scott,

Do you mean that the debugger skips code only after multi-threads start
running? This is a very important information to this issue.

First, in order to isolate the problem, could you please stop running
multi-threads in your application? Check if the problem still remains while
no user created threads running in the application. You could do that just
comment the code to create new threads.

Second, let us monitor the threads in the Threads window. We could fist run
the application. When the breakpoint just before starting multi-threads is
hit, we could open threads window from menu [Debug] / [Windows] /
[Threads]. (The thread menu is only available when debugging) Inside the
threads table, it has thread id, category, name and location. Current
running thread is marked by a yellow arrow on the left side. Make sure
current thread is main thread. Then start stepping code. Check if the
current thread is always main thread.

The reason why we monitor the threads when debugging is because other
thread may hit the breakpoint when you stepping. That will switch the
debugger to other thread, so the main thread will not go on stepping
anymore in some situation.

Is it possible for you to create a small project that can reproduce the
error and you can send me through email?
If it is too hard, could you copy the routine code and thread running code
here or send me email so that I can do some reproduction attempts on my
side? (hongyes@xxxxxxxxxxxxxxxxxxxx, remove 'online.')

Please try to monitor the threads and let me know the result. Thanks.

Regards,
Hongye Sun (hongyes@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • RE: Step by Step skips large chunks of code
    ... Putting on SP1 the problem occurred. ... the debugger seems to work OK in the main thread ... let us monitor the threads in the Threads window. ... Then start stepping code. ...
    (microsoft.public.vsnet.debugging)
  • Re: Threading in VB
    ... Were you debugging multiple threads? ... And how does that relate to using the IDE as a debugger when the ... multi-threads. ...
    (microsoft.public.vb.general.discussion)
  • RE: Step by Step skips large chunks of code
    ... Added SP1, the debugger started skipping within threads. ... let us monitor the threads in the Threads window. ... Then start stepping code. ...
    (microsoft.public.vsnet.debugging)
  • Re: Learning C
    ... I stress that I talking about "stepping through an application". ... And how can stepping through an app be bad? ... I did not step through the code with a debugger. ... "examine", to me, means to study the source code. ...
    (comp.lang.c)
  • Re: Learning C
    ... with a debugger. ... I stress that I talking about "stepping through an application". ... But often loggers affect the app. ... "examine", to me, means to study the source code. ...
    (comp.lang.c)

Loading