Skip to content

Lightweight, zero-dependency debug badge, toggled by your framework flag. Switch on the optional phrase library—random lines + icons keep you company while you code; impossible to miss, so you’ll never push debug mode to prod again.

License

Notifications You must be signed in to change notification settings

ToolBusDev/DebugPill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DebugPill

A lightweight, zero-dependency web debugging badge.
One look at the floating capsule and you'll never push debug mode to prod again.

Backstory

After that one time I shipped a debug build to production, every deploy has felt like a heist.

I wanted something dead simple—no plugins, no frameworks, no config files.
Copy, paste, done.

When in doubt, ask AI. That's how DebugPill was born.

What it is

  • Debug on → a tiny capsule badge floats on the page, impossible to miss.
  • Prod on → set your framework flag and the badge simply never loads.

Pure HTML + CSS, ~1 kB. Drop it in, sleep better. If you don't mind a slight increase in size, feel free to enable the JS dynamic phrase library and experience the little surprise with each refresh.

Quick start

Use your framework's debug flag to decide whether to render it.
Blade example:

{{-- app.blade.php --}}
@if (config('app.debug'))
    <link rel="stylesheet" href="/css/high-contrast.css">
    <div id="debug-pill">
        <span class="icon">🧙</span>
        <span class="main-text">Debug Mode</span>
        <span class="separator">|</span>
        <span class="sub-text">Keep going!</span>
    </div>
    <!-- <script src="/js/dynamic-phrases_en.js"></script> -->
@endif

Screenshot

DebugPill (Default Static Version)
Badge docked at the bottom-center while debugging (default static phrase: "Keep going!")

DebugPill (Dynamic Phrases Version)
DebugPill with JS dynamic phrase library enabled—showing a random phrase and icon on refresh

License

MIT © ToolBusDev – take it, it's free.

About

Lightweight, zero-dependency debug badge, toggled by your framework flag. Switch on the optional phrase library—random lines + icons keep you company while you code; impossible to miss, so you’ll never push debug mode to prod again.

Topics

Resources

License

Stars

Watchers

Forks