Debug
A bug that cannot be reproduced is almost impossible to fix. Create a minimal, repeatable test case.
Often, the console provides exact details on what went wrong and where. A bug that cannot be reproduced is almost impossible to fix
Monitor how variable values change during execution. Logging and Print Debugging repeatable test case. Often