# Debugging (with) your mind

- Speaker: [Gilad Ben Yossef](/wiki/speakers/gilad-ben-yossef.md)
- Event: [Reversim Summit 2019](/wiki/years/2019.md)
- Video: https://www.youtube.com/watch?v=JG37q97YDWM
- Transcript: [/transcripts/2019/75-JG37q97YDWM.md](/transcripts/2019/75-JG37q97YDWM.md)
- Language: Hebrew · Type: talk · Level: general
- Topics: [Debugging](/wiki/topics/debugging.md), [Productivity](/wiki/topics/productivity.md), [Software Engineering](/wiki/topics/software-engineering.md), [Soft Skills](/wiki/topics/soft-skills.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

This talk explores the mental processes behind debugging, arguing that developers debug their own mental models rather than the code itself. The speaker connects insights from cognitive science, meditation, and psychology to explain how human perception is a simulation influenced by prior expectations and attention. By learning to recognize these cognitive biases and tuning into physical body sensations, developers can improve their debugging intuition and problem-solving efficiency. Ultimately, this self-awareness extends beyond debugging code to enhance overall mental clarity and perception in daily life.

## Key points

- [5:31](https://www.youtube.com/watch?v=JG37q97YDWM&t=331s) Debugging is fundamentally a mental process rather than a technical fixing of precise instructions.
- [6:34](https://www.youtube.com/watch?v=JG37q97YDWM&t=394s) When debugging, a developer is actually trying to correct a mismatch between their mental model and reality.
- [8:59](https://www.youtube.com/watch?v=JG37q97YDWM&t=539s) Scientific research shows that a programmer's energy and alertness levels directly impact their debugging performance.
- [10:02](https://www.youtube.com/watch?v=JG37q97YDWM&t=602s) Human perception is essentially a simulation or user interface generated by the brain, not a direct reflection of objective reality.
- [13:27](https://www.youtube.com/watch?v=JG37q97YDWM&t=807s) Visual and attention illusions, such as the famous gorilla experiment, prove that people only see what they pay attention to and expect to see.
- [18:55](https://www.youtube.com/watch?v=JG37q97YDWM&t=1135s) Cognitive research by Daniel Kahneman highlights the constant interplay between fast, associative intuition and slow, rational thinking.
- [23:13](https://www.youtube.com/watch?v=JG37q97YDWM&t=1393s) Physical bodily sensations and physiological responses often signal intuitive gut feelings before the conscious mind fully understands a problem.
- [26:29](https://www.youtube.com/watch?v=JG37q97YDWM&t=1589s) Practices like meditation help train the brain to achieve mental clarity, reduce cognitive fabrications, and observe reality as it is.

## Takeaways

- Remember that bugs live in your mental model of the code, not in the syntax itself.
- Pay attention to physical body sensations during difficult debugging sessions to tap into subconscious intuition.
- Acknowledge that attention is selective; step back and question your assumptions when you cannot see a bug right in front of you.

## Questions this talk answers

- Why do experienced developers sometimes fail to see simple bugs staring them in the face?
- How can understanding cognitive biases and mental models make me a faster debugger?
- What role do physical bodily sensations play in problem-solving and intuition?

## Technologies

Linux

## Tags

cognitive science, debugging, mental models, mindfulness, problem solving, psychology
