Skip to content

Slowbug is a VS Code extension for debugging your code in slow-mo!

License

Notifications You must be signed in to change notification settings

postmalloc/slowbug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slowbug

Slowbug is a VS Code extension for debugging your code in slow-mo!

What?

The idea is simple. Make it possible to see how the control flows through the code. I noticed that often, I end up inserting too many breakpoints, and find it tedious to step through and understand the flow when working on a new codebase. Slowbug aims to solve that by executing the code slowly, at your preferred speed, line by line.

Slowbug is agnostic to languages and debug adapters since it issues commands directly to the VS Code workbench.

Usage

You can install Slowbug from VS Code Marketplace.

Since Slowbug does not rely on any specific debuggers, it does not automatically generate a launch.json for you. Make sure you add "stopOnEntry": true property under your debugger in launch.json before you run Slowbug.

To launch Slowbug, press the slowmo play button. Slowbug starts stepping through the code at a default pace of 800ms. The speed can be configured in settings > Slowbug > stepDuration. The pause button pauses the debugger. Resume it by pressing the slow-mo play button. Slowbug steps into function calls. However, it only steps into your code, and ignores third-party libraries.

The functionality right now is minimal.

Upcoming features

  • Range selection
    Ability to select a code block and enable Slowbug only there.
  • Better controls

Contributing

You're welcome to add features and raise issues.

License

MIT License

About

Slowbug is a VS Code extension for debugging your code in slow-mo!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published