From: Paul Kinnucan [SMTP:[EMAIL PROTECTED]]
>
>-----------------------------------------------------------------------
> VM_ID CMD_ID set_single_thread_mode [on | off]
>
>What happens to the other threads during this? Are they suspended
or do they
They continue to run. If you do step in the current thread and the
thread is
suspended as a result, the other threads run until the current
thread regains
control.
>continue to run. It would, as ever, be useful to be able to choose
what the
>other threads do.
>
Do you mean you want debugger commands that suspend or activate
threads
independently of debuggee logic? If you do and that's possible, we
should
provide the commands.
Yep.
My experience is that it can sometimes be difficult to debug a thread when
the other threads continue to run. For example, I may have one thread
generating data and writing to a queue and I have another thread reading
from that queue. If I try and debug the reading thread, the writing thread
continues to put stuff in the queue. The queue then gets full and starts to
cause other side effects.
I would therefore like to be able to temporarily suspend the writing thread.
I can, of course, work around this by temporarily changing my code or
setting additional breakpoints. However being able to do it directly with a
debug command is going to be easier, especially when the number of threads
starts to multiply or the thread is in a third party package.
--
Matt
##########################################
This email, its content and any files transmitted with it are intended
solely for the addressee(s) and may be legally privileged and/or
confidential. Access by any other party is unauthorised without the
express written permission of the sender. If you have received this
email in error you may not copy or use the contents, attachments or
information in any way. Please destroy it and contact the sender on
the number printed above, via the Dresdner Kleinwort Benson
switchboard on +44 171 623 8000 or via e-mail return. Internet
communications are not secure unless protected using strong
cryptography. This email has been prepared using information believed
by the author to be reliable and accurate, but Dresdner Kleinwort
Benson makes no warranty as to accuracy or completeness. In particular
Dresdner Kleinwort Benson does not accept responsibility for changes
made to this email after it was sent. Any opinions expressed in this
document are those of the author and do not necessarily reflect the
opinions of the Bank or its affiliates. They may be subject to change
without notice.
##########################################