The easiest way to figure that out is to debug the code and follow the 
execution step by step.

Note that you can basically develop in the debugger, unlike most other 
programming languages!

There are two ways to launch the debugger:
1. put a "self halt" in the code, this is the Smalltalk way of adding a 
breakpoint
2. Select a piece of code and debug it, right click and select debug

I hope this will help you

On 2013-01-25, at 10:43, mircea <[email protected]> wrote:

> Hello, 
> 
> I have this piece of code (taken from ProfStef). How do i programmatically
> get the order in which the objects are executed by Squeak. I know the order
> of execution from smalltalk documentation. But what if i need this
> information inside an app i'm building. 
> 
> tutorial: aTutorialClass lesson: aSelector 
>        | tutorial | 
>        tutorial := aTutorialClass new. 
>        self player tutorial: tutorial. 
>        self tutorial: aTutorialClass lessonAt: (tutorial indexOfLesson:
> aSelector). 
> 
> Thank you!
> 
> 
> 
> --
> View this message in context: 
> http://forum.world.st/How-do-i-list-the-execution-order-of-statements-inside-a-method-tp4665303.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> 


Reply via email to