A diagnostic tool for a portable thread environment is disclosed. In one embodiment,
a system comprises a first portable thread environment (PTE), comprising a diagnostic
tool; a second PTE configured to receive and send threads; a third PTE configured
to receive and send the threads; and a PTE router configured to receive the threads
and route said threads, wherein the router copies the threads and routes the copies
to the diagnostic tool.