google / blockly

The web-based visual programming editor.
https://developers.google.com/blockly/
Apache License 2.0
12.51k stars 3.72k forks source link

debug / step through mode #8638

Closed jogibear9988 closed 2 weeks ago

jogibear9988 commented 2 weeks ago

Check for duplicates

Problem

I'd like to support a step through mode in my app wich is using blockly. As in my app, every command is async, it would easy to wait after each execution of a command, but is there support in the blockly UI for such a mode?

Request

Support a debug / step through mode in the UI, with the posibillity to show results on the blocks

Alternatives considered

No response

Additional context

No response

gonfunko commented 2 weeks ago

https://google.github.io/blockly-samples/examples/interpreter-demo/step-execution.html illustrates how to do this using the JS Interpreter package. If you run into issue with that or have specific questions, feel free to post on the forum!