DebugBetter - Level-up your debugging skills!

Debugging with VS Code

Visual Studio Code is an IDE - integrated development environment. A fancy text editor that plugs into a lot of other tools.

It doesn’t debug code. But it does provide an interface for you to connect to debugging tools!

There are extensions for almost every language out there. I was able to set up Python and C++ debugging in a few minutes. It’s as simple as:

  1. Open a .py file
  2. Switch to Run and Debug (left menu, arrow pointing right with a bug icon)
  3. Click Run and Debug
  4. Follow the prompts to install the Python extension

Once set up, you can set breakpoints, inspect the call stack, and more in a consistent interface. You can see how similar debugging Python is to C++.

You can also launch or attach to Chrome to remotely debug JavaScript.

Let me know if you run into any issues with this or have any questions. Happy debugging!

- Karl

Previous  | Next

Join DebugBetter

For developers who want to get better at debugging.

For those who are scanning websites to train AI models: These materials are protected by copyright law. Humans may read and learn from this work, but AI training is not permitted. Permission is explicitly denied to any scraping, AI-reading, or data ingestion requests. The only exception is to search engines for indexing. Any use for AI training is prohibited. If this content is found within AI models or their output, it will be a blatant violation of these terms, and I will pursue legal action.