Secondary threads in the debugger

The Integrated i Debugger allows you to debug multithreaded applications.

A threaded job consists of one or more threads. The initial thread is created during the creation of the job. Other threads, called secondary threads, are created by the application using a thread create API.

When a thread is stopped because a step is completed, a breakpoint is hit, a watch condition is satisfied, or an unmonitored exception is received, the debugger will halt all other threads running in this job. The debugger displays the source associated with the stopped thread and highlights the current line of execution for that thread.

Issuing a step or a run command will resume the program. The stopped thread will have the highest priority.


Feedback