The set
focus command
sets the specified thread to be the focus thread.
By
default, tracing starts with mainThread in focus.
The focus changes in the following cases:
- You
enter a set focus command.
- A
thread encounters a breakpoint and stops the
application, in which case it becomes the current thread.
- The focus thread died (the active instance to which
it belonged was deleted). In this case, the tracer set focus on one
of the remaining threads. The selection is random, but if there are
nonsuspended threads, one of these is selected.
Syntax
set focus <threadName>
set focus #Thread <threadName>
Arguments
threadName
Specifies the new focus thread