*** empty log message ***
authorClaus Gittinger <cg@exept.de>
Fri, 13 Feb 2009 15:55:31 +0100
changeset 11540 fc5339c7ff8c
parent 11539 89a5c02c5f60
child 11541 1630e2a37731
*** empty log message ***
Context.st
--- a/Context.st	Fri Feb 13 15:49:50 2009 +0100
+++ b/Context.st	Fri Feb 13 15:55:31 2009 +0100
@@ -919,6 +919,27 @@
     "
 
     "Created: / 3.9.1999 / 14:02:38 / ps"
+!
+
+printAllLevels:nOrNil
+    "print a full walkback starting at the receiver, only print n levels
+     - used only for MiniDebuggers walkback print"
+
+    |context count|
+
+    count := 0.
+    context := self.
+    [context notNil] whileTrue: [
+        context printCR.
+        context := context sender.
+        nOrNil notNil ifTrue:[
+            (count := count+1) > nOrNil ifTrue:[^self].
+        ]
+    ]
+
+    "
+     thisContext printAllLevels:5
+    "
 ! !
 
 !Context methodsFor:'non local control flow'!
@@ -2298,7 +2319,7 @@
 !Context class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Context.st,v 1.146 2009-02-13 14:49:50 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Context.st,v 1.147 2009-02-13 14:55:31 cg Exp $'
 ! !
 
 Context initialize!