A Cookie Clicker mod that brings a built-in log viewer directly into the game — no browser DevTools needed.
Opens with Ctrl+L. Captures and displays:
- All console calls —
log,warn,error,debug,info,table,time,count,assert,trace, and more - Game notifications and popups (
Game.Notify/Game.Popup) - Uncaught JS errors and unhandled promise rejections
- Failed resource loads (images, scripts, stylesheets)
- Network errors (fetch / XHR)
Each entry shows a timestamp, level badge, and — when stack traces are enabled — a full call stack with clickable VS Code / JetBrains jump links.
- Resizable and draggable overlay, always on top of the game
- Adjustable opacity
- Scroll to top / bottom buttons
- Unread banner when new entries arrive while scrolled up
- Deduplication — repeated identical entries are collapsed into
[×N]
- Toggle visibility by level: LOG, DBG, WARN, ERR, STATS, GAME
- Toggle by source: Console, Game, Uncaught JS errors, Failed resources, Network
- Live text search with debounce
- Copy individual entry to clipboard (copies stack trace too if it's expanded)
- Click a path in the stack trace to copy it; use the editor button to open it directly in VS Code or JetBrains
- Tables (
console.table) are copied as CSV
- Save visible — exports only entries matching current filters/search
- Save all — exports everything
- Options: include stack traces, expand duplicates into separate lines
- Clear all — wipes the log
- Clear hidden — removes only entries hidden by current filters/search
- Timestamps on/off
- Stack trace capture on/off (affects new entries only)
- Text selection on/off
- Notify on error — shows a game notification when an error is logged while the window is closed
- Save options: stack traces, expand duplicates
🌑 Dark · 🦊 Gruvbox · 🟢 Steam 2009 · ⛩️ Tokyo Night · 💗 Neon
- Go to the Steam Workshop page.
- Click Subscribe.
- Launch Cookie Clicker via Steam — the mod will load automatically if you have Mod Manager enabled.
Tip: The earlier Console Logger appears in your mod list, the more it will capture. Place it as high as possible so it initializes before other mods.
- Open Cookie Clicker.
- Open the browser console (
F12). - Paste the following and press Enter:
Game.LoadMod("https://r33yl.github.io/ConsoleLogger/main.js");// All standard console methods work as usual:
console.log('hello from my mod');
console.warn('something looks off');
console.error('something broke');
console.table(myData);
console.time('init'); /* ... */ console.timeEnd('init');Errors thrown anywhere in your mod will be caught and shown automatically.
This project is licensed under the MIT License. You are free to use, modify, and distribute the code with attribution.