Implement proper debugging tools and API
sovdeeth opened this issue ยท 0 comments
Suggestion
Add a way for Skript users to easily debug their code by adding breakpoint analogues, pausing executing, and stepping through code. Ideally, this would be implemented in a beginner friendly manner, but with the api hooks to support much more robust tools.
See rough mock up below.
Takejohn's pr #6365 is a wonderful start on the API side, but I haven't looked closely enough to see if it'd need tweaking to support this idea.
Other feature ideas include both text and gui displays, allowing skunity parser to hook into the api, and possibly a skript-lang addon for a more robust and complicated debugging tool later on.
Why?
The current state of Skript debugging is adding a bunch of log messages in the form of broadcast or send effects that tell you the state of your program. This is adequate, but takes effort and many newer users struggle to get in the habit of doing it. Providing a simple, easy-to-use debugger that allows users to step through their code and see how it works with little effort on their part would go a long way to helping users learn why their code is breaking and help them fix it on their own.
Other
Agreement
- I have read the guidelines above and affirm I am following them with this suggestion.