diff --git a/lib/modules/Debug.pmod/Inspect.pike b/lib/modules/Debug.pmod/Inspect.pike
index b7119929ae435af4daef331d1f92463f234a3720..95a41b824f8676f21e95e19a5a54b98dcd7fdcd4 100644
--- a/lib/modules/Debug.pmod/Inspect.pike
+++ b/lib/modules/Debug.pmod/Inspect.pike
@@ -100,7 +100,8 @@ private void loop(int sig) {
 }
 
 //! The internal function which does all the work each pollinterval.
-private void inspect() {
+//! Run it directly to force a thread-dump.
+void inspect() {
   Thread.MutexKey lock;
   if (lock = running->trylock(1)) {
     Thread.Thread thisthread = Thread.this_thread();