How to debug Puzzles: Difference between revisions
From Verge3D Wiki
Jump to navigationJump to search
Created page with "This short how-to explains how to find and fix bugs in your Puzzles scenarios. == Look for errors in the browser console == If you execute Puzzles incorrectly, e.g. by passing invalid inputs, they will fail to work and print the explanation in the browser console (see [https://www.soft8soft.com/docs/manual/en/introduction/FAQ.html#browser_console here] on how to open one). == Use print to console puzzle == [https://www.soft8soft.com/docs/manual/en/puzzles/System.html..." |
|||
| Line 7: | Line 7: | ||
== Use print to console puzzle == | == Use print to console puzzle == | ||
[https://www.soft8soft.com/docs/manual/en/puzzles/System.html#print_to_console print to console] should | Your scenario behaves odd, but there is no errors in the browser console? Just insert the [https://www.soft8soft.com/docs/manual/en/puzzles/System.html#print_to_console print to console] puzzle in the places you need to check with some meaningful data passed as input. | ||
== Summary == | |||
Ability to find bugs in Puzzles and resolve them quickly is the first skill you should master. Let's repeat the algorithm: | |||
# open the browser console and look for errors | |||
# insert '''print to console''' and carefully read its output | |||
[[Category:Tutorials and How-Tos]] | [[Category:Tutorials and How-Tos]] | ||
[[Category:Visual Programming]] | [[Category:Visual Programming]] | ||
Revision as of 14:13, 21 March 2026
This short how-to explains how to find and fix bugs in your Puzzles scenarios.
Look for errors in the browser console
If you execute Puzzles incorrectly, e.g. by passing invalid inputs, they will fail to work and print the explanation in the browser console (see here on how to open one).
Use print to console puzzle
Your scenario behaves odd, but there is no errors in the browser console? Just insert the print to console puzzle in the places you need to check with some meaningful data passed as input.
Summary
Ability to find bugs in Puzzles and resolve them quickly is the first skill you should master. Let's repeat the algorithm:
- open the browser console and look for errors
- insert print to console and carefully read its output