This option offers a simple way to debug multithreaded IBM® i applications. The debugger creates a batch immediate (BCI) job and runs your application in it.
To debug secondary threads effectively, in the editor, scroll to the source of the code that executes in the secondary threads and set a line breakpoint at the first debuggable statement. Running the program will then stop at the beginning of the thread, which will allow you to set breakpoints for this thread and perform all other debugging functions on it.
When stepping through the thread creation code, additional threads may be displayed in the Debug view. To guarantee a view of these threads in the Debug view, set a breakpoint in the code which runs in the thread that you want to view. If necessary, add the program which contains the thread you want to view to the Programs view.