grierson
2021-7-2 09:27:47

Hey, Is there any tools which create a visual trace of your program execution? So like trace + graphiz something like that?


grierson
2021-7-2 09:29:10

Something like this so I can visually see how my program is executing?


sorawee
2021-7-2 09:30:55

There are a couple of tools, but I don’t think any of them outputs in the format that you want.


sorawee
2021-7-2 09:31:25

There’s a trace library, which can output the execution trace as text: https://docs.racket-lang.org/reference/debugging.html


sorawee
2021-7-2 09:33:35

DrRacket also has a “Debug” button, which allows you to step through the execution:


soegaard2
2021-7-2 09:34:42

Oh! If you have a “simple” program - that is one that can be written in the first two to three beginner languages, then the “Algebraic Stepper” is brilliant.


sorawee
2021-7-2 09:36:41

The downside of both Algebraic Stepper and Debug button is that you don’t see the whole picture at once. You need to interact with the tool to see your program evaluation evolves.