Debug Official

The next time you encounter a bug, do not open the file and start typing. Stop. Write down what you know is true. Write down what you assume is true. Then, design one experiment to disprove one assumption.

🐞 Are you currently trying to resolve a specific or logical flaw in your project? The next time you encounter a bug, do

Find a reliable way to trigger the unexpected behavior. Write down what you assume is true

Confirmation bias tricked you. You assumed the problem was complex (empty lists) when it was simple (off-by-one). To debug effectively, you must become a skeptic of your own assumptions. Find a reliable way to trigger the unexpected behavior

Notice that the debug process took 90% of the time. The fix (adding a lock) took 30 seconds. This is always the case:

Debugging is an essential part of the software development process, requiring a combination of technical skills, problem-solving strategies, and knowledge of debugging tools and techniques. By following best practices and using a range of debugging techniques and tools, developers can identify and fix errors efficiently, ensuring that software works correctly and meets its requirements.

private void OnGUI()