Thank you for the fast response. However i don't need it myself. I want to use this in a small piece of software i'm writing. Essentially showing the execution order of any smalltalk code. I wanted to use the "way" pharo works itself to do this… instead of parsing the text myself and checking.
For example… in the Workspace… i can write a small piece of code that does something. When i select it and click Do It. Pharo goes on to execute the text… it first parses it i think and then figures out what to execute first and then pass the product of that object to the next thing and so on. It might look like this something dothis anotherobject something dothis finalobject [ anotherobject something do this ]. Pe 25.01.2013, la 11:47, Camillo Bruni <[email protected]> a scris: > 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. >> > >
