Debugging Python Code

Cyberbrain: Python debugging, redefined.

Ravi | Python ✍️
Analytics Vidhya
5 min readDec 12, 2020

--

If debugging is the process of removing software bugs, then programming must be the process of putting them in — Edsger Dijkstra

Cyberbrain Debugging. Image Credit: Cyberbrain

Cyberbrain is a Python debugging solution aiming to free programmers. It visualizes program execution and how each variable changes. Cyberbrain aims to free programmers from debugging. It lets you:

  • Backtrace variable changes.
  • See every state of program execution, including variables’ values
  • Debug loops with confidence.

Never spend hours stepping through a program, let Cyberbrain tell you what happened.

Cyberbrain keeps your workflow unchanged. You run a program (from vscode or command line, both work), and a new panel will be opened to visualize how your program executed.

Cyberbrain demo. Image Credit: Cyberbrain

Installation

Cyberbrain consists of a Python library and various editor/IDE integrations. Currently, it supports VS Code.

To install Cyberbrain:

pip install cyberbrain
code --install-extension laike9m.cyberbrain

--

--

Ravi | Python ✍️
Analytics Vidhya

💻 Software Engineer | Tech Explorer | Tech Storyteller | Astronomy Enthusiast | Writing About the Art of Coding (Python) | Books | #Programming #Python