YongJunL / blockly

Automatically exported from code.google.com/p/blockly
0 stars 0 forks source link

Step by step execution (maybe with variable "watch") #223

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For educational purposes it is good to see/analyse what exactly happens step by 
step.

may be it would'nt be hard to implement "Step and Pause" button aside "Run" 
(and maybe even breakpoints?). 

A good example is http://pythontutor.com/ (and some tries in 
http://reeborg.ca/world.html)

Original issue reported on code.google.com by jurgis.pralgauskis on 8 May 2014 at 3:24

GoogleCodeExporter commented 9 years ago
This is not a Blockly issue, this is an execution issue.  To implement 
step-by-step execution, you'll need an interpreter that can execute code 
step-by-step.

The good news is that we wrote one for JavaScript specifically for Blockly 
educational projects.  Here it is:
https://neil.fraser.name/software/JS-Interpreter/

Enjoy!

Original comment by neil.fra...@gmail.com on 8 May 2014 at 6:51

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I looked inside apps and found what I wanted... I hacked a bit maze.js -- see 
the "Pause" and "Next Action" buttons :)
http://galvosukykla.lt/failai/coding/blockly-read-only-PauseButton/apps/maze/ind
ex.html?lang=en&level=3&skin=0

Original comment by jurgis.pralgauskis on 20 May 2014 at 7:40