In This Book

Viewing and Manipulating Threads

Choose Execution:Threads to display the Threads dialog box. The Threads dialog box, shown in Figure 8-1, displays a list of threads in your program. The list is automatically updated as threads are created or change status.

Figure 8-1. The Threads Dialog Box

Notice the following in the thread list:

A numeric thread identi￿er is displayed for each thread. The thread number is assigned by the debugger.

Thread 1 is the initial thread (also kno wn as the distinguished thread) and Thread 2 is the system thread. The debugger alwa ys assigns the ￿rst t wo identi￿ers to these threads.

You can use these numeric identi￿ers for commands that require a thread id (for example, breakpoint -thread thread id ).

Threads are also labeled b y the initial procedure name. In this case, the initial procedure name w as thread .

8-8 Debugging in Special Situations