diff --git a/src/apps/debugger/user_interface/cli/CliThreadsCommand.cpp b/src/apps/debugger/user_interface/cli/CliThreadsCommand.cpp index 6bb84f3a87..8387b4941b 100644 --- a/src/apps/debugger/user_interface/cli/CliThreadsCommand.cpp +++ b/src/apps/debugger/user_interface/cli/CliThreadsCommand.cpp @@ -38,7 +38,14 @@ CliThreadsCommand::Execute(int argc, const char* const* argv, Thread* thread = it.Next();) { const char* stateString = UiUtils::ThreadStateToString( thread->State(), thread->StoppedReason()); - printf("%10" B_PRId32 " %-9s \"%s\"\n", thread->ID(), stateString, + printf("%10" B_PRId32 " %-9s \"%s\"", thread->ID(), stateString, thread->Name()); + + const BString& stoppedReason = thread->StoppedReasonInfo(); + if (thread->State() == THREAD_STATE_STOPPED + && !stoppedReason.IsEmpty()) { + printf(" (Reason: \"%s\")", stoppedReason.String()); + } + printf("\n"); } }