Dynamic Logging Made Simple & Free ⚡
A powerful VS Code extension that brings dynamic log visualization directly to your code - like Console Ninja, but completely open source and free! See your console.log outputs right beside your code in real-time, without switching between your editor and browser console.
🎯 Mission: End my project! -- I prefer to make my own "console ninja" rather than pay for premium features
- ✅ 100% Free & Open Source - No subscriptions, no limits
- 🚀 Real-time Log Visualization - See outputs directly in your editor
- 🎨 Beautiful UI - Clean, modern interface with syntax highlighting
- ⚡ Zero Configuration - Works out of the box
- 🔧 Extensible - Built for the community, by the community
- Real-time Console Output - See
console.logresults directly beside your code - Multi-console Support -
console.warn,console.info,console.debug, and more - Timestamp Tracking - Know exactly when each log was executed
- Smart Log Parsing - Automatically detects and displays log outputs
- Interactive Decorations - Add custom text beside any code line
- Syntax Highlighting - Beautiful, color-coded log displays
- Quick Actions - Clear decorations with a single command
- Vite Integration - Built-in Vite development server management
- Terminal Management - Smart terminal handling for seamless development
- Mock Data Generation - Create test logs for demonstration and testing
- Zero Config Setup - Works immediately after installation
- Automatic Welcome Guide - Get started in seconds
- Command Palette Integration - All features accessible via
Ctrl+Shift+P
-
Console Logs ✨
Output fromconsole.logdisplayed in your editor next to the relevant line of code. No more context switching to browser dev tools or terminal output. -
Runtime Errors 🚨
Runtime error output displayed in your editor next to the relevant line of code. Catch exceptions and errors exactly where they happen. -
Network Requests 🌐
Network logging captures details of requests made by your browser to your application. Only requests related to files currently opened in your editor are logged. Shows URL, method (GET, POST), and status (200, 404, 500) right next to your code.
- Enhanced Console Methods - Support for
console.warn,console.info,console.debug - Log Filtering & Search - Real-time filtering and search capabilities
- Performance Monitoring - Track execution times and performance metrics
- WebSocket Support - Real-time connection monitoring
- Custom Log Formatters - Personalized output styling
🚀 Current Focus: Getting the core trio of features rock-solid before expanding!
- Install from VS Code Marketplace:
Console Warrior - Press
F5to see it in action!
-
Clone the repository:
git clone https://github.com/yourusername/console-warrior.git cd console-warrior -
Install dependencies:
pnpm install
-
Launch in development mode:
pnpm compile # Press F5 in VS Code to open extension host
# Using the provided Makefile
make install
make build
make debugconsole.log('🚀 Loading user data...');
// Switch to browser console to see: "🚀 Loading user data..."
// Switch back to editor...
// Switch to console again...
// 😤 Constant context switching!console.log('🚀 Loading user data...'); // → 🚀 Loading user data... [12:34:56.789]
console.log('✅ User loaded:', user); // → ✅ User loaded: {name: "John", id: 123} [12:34:56.821]
console.warn('⚠️ Cache miss'); // → ⚠️ Cache miss [12:34:56.825]The magic: All outputs appear right beside your code, in real-time! 🪄
🎥 Coming soon: Watch Console Warrior in action!
function greetUser(name) {
console.log('🚀 Application starting...'); // ← You'll see output here!
console.log('👤 User logged in');
if (name) {
console.log('🎉 Welcome back!');
return `Hello, ${name}!`;
}
console.log('⚠️ No username provided');
return 'Hello, Guest!';
}Steps:
- Open any JavaScript/TypeScript file with
console.logstatements - Run command:
Ctrl+Shift+P→ "Capture and Display Logs" - Watch the magic happen! ✨
- Place cursor on any line
Ctrl+Shift+P→ "Add Text Beside Code"- See decorative text appear instantly
Ctrl+Shift+P→ "Start Vite Dev Server"- Enter your project path
- Integrated terminal management with log viewing
| Feature | Console Warrior | Console Ninja | Browser DevTools |
|---|---|---|---|
| Price | 🆓 Free Forever | 💰 Paid subscription | 🆓 Free |
| In-Editor Logs | ✅ Real-time | ✅ Real-time | ❌ Separate window |
| Open Source | ✅ MIT License | ❌ Proprietary | ❌ Browser-specific |
| No Setup | ✅ Zero config | ✅ Easy setup | |
| Offline Work | ✅ Always works | ✅ Works offline | ✅ Browser dependent |
| Custom Extensions | ✅ Community driven | ❌ Limited | ❌ No customization |
| Multi-Framework | ✅ Universal | ✅ Multiple |
🎯 Our Mission: Bring Console Ninja's amazing UX to everyone, for free!
All commands are accessible through the Command Palette (Ctrl+Shift+P or Cmd+Shift+P):
| Command | Description | Status |
|---|---|---|
Capture and Display Logs |
🎯 Parse console.log statements and show output beside code | ✅ Active |
Clear Log Decorations |
🧹 Remove all log decorations from the current file | ✅ Active |
Generate Mock Logs |
🎭 Create test log entries for demonstration | ✅ Active |
Add Text Beside Code |
✏️ Add decorative text at the end of the current line | ✅ Active |
Clear Text Beside Code |
🗑️ Remove all text decorations from the editor | ✅ Active |
Start Vite Dev Server |
🚀 Launch Vite development server in terminal | ✅ Active |
Read Vite Logs |
📖 Focus on Vite terminal to view logs | ✅ Active |
💡 Tip: Most commands work immediately without configuration!
- Place your cursor on any line of code
- Open Command Palette (
Ctrl+Shift+P) - Run "Add Text Beside Code"
- See the decorative text appear at the end of the line
- Open a JavaScript/TypeScript file with
console.logstatements - Run "Capture and Display Logs" command
- See log outputs displayed beside each
console.logline with timestamps - Use "Clear Log Decorations" to remove log displays
- Use "Start Vite Dev Server" command
- Enter the path to your Vite project when prompted
- The extension will create a dedicated terminal and start the dev server
- Use "Read Vite Logs" to quickly access the terminal output
The extension uses the following default settings for text decorations:
{
contentText: ' // Your text here',
color: '#888888',
fontStyle: 'italic'
}- Node.js (v16 or higher)
- Yarn package manager
- VS Code
# Install dependencies
yarn install
# Compile TypeScript
yarn compile
# Watch mode for development
yarn watch
# Run linting
yarn lint
# Run tests
yarn test# Install dependencies
make install
# Build the extension
make build
# Start development with watch mode
make dev
# Debug the extension
make debug
# Clean build artifacts
make clean
# Run all quality checks
make check├── src/
│ ├── extension.ts # Main extension logic
│ ├── commands/
│ │ └── viteManager.ts # Vite project management
│ └── test/
│ └── extension.test.ts # Test suite
├── projects/
│ └── test-vite-project/ # Test project for debugging
├── .vscode/
│ ├── launch.json # Debug configuration
│ ├── settings.json # Workspace settings
│ └── tasks.json # Build tasks
├── package.json # Extension manifest
├── tsconfig.json # TypeScript configuration
├── Makefile # Build automation
└── README.md # This file
When you press F5 to start debugging, the extension will automatically:
- Compile the TypeScript source
- Open a new VS Code window with the extension loaded
- Open the test Vite project located in
projects/test-vite-project/
This setup allows you to immediately test:
- 🚀 Start Vite Dev Server (auto-suggests the test project path)
- 📋 Read Vite Logs (terminal management)
- ✨ Text decorations (add text beside code lines)
- F5 - Start debugging (opens test project automatically)
- Ctrl+Shift+P → "Start Vite Dev Server" - Uses test project by default
- Ctrl+Shift+P → "Add Text Beside Code" - Test on any file
- Ctrl+Shift+P → "Read Vite Logs" - Focus Vite terminal
- Text decorations persist across VS Code sessions (by design)
- Vite terminal management requires manual path input
- Extension activates on VS Code startup (opens welcome file automatically)
- Initial release with text decoration functionality
- Added Vite project management commands
- Implemented welcome file system
- Full Yarn support for development workflow
Console Warrior is built by developers, for developers! We welcome contributions of all kinds.
- 🐛 Report bugs - Found something broken? Let us know!
- 💡 Suggest features - Have ideas for new logging capabilities?
- 🔧 Submit PRs - Code contributions are always welcome
- 📖 Improve docs - Help make the documentation clearer
- ⭐ Star the repo - Show your support!
-
Fork & Clone
git clone https://github.com/yourusername/console-warrior.git cd console-warrior -
Create Feature Branch
git checkout -b feature/amazing-new-feature
-
Develop & Test
yarn install yarn compile # Press F5 to test in VS Code Extension Host -
Submit PR
git commit -m "feat: add amazing new feature" git push origin feature/amazing-new-feature # Open PR on GitHub
Looking for easy ways to contribute? Check out issues labeled:
good-first-issue- Perfect for newcomershelp-wanted- Community assistance neededdocumentation- Improve our docs
Pro tip: Join our discussions to connect with other contributors!
This project is licensed under the MIT License - see the LICENSE file for details.
TL;DR: You can use, modify, and distribute this software freely. We just ask that you include the original license notice.
- 📚 Documentation - Check our Wiki
- 🐛 Bug Reports - Open an issue
- 💬 Discussions - Join the conversation
- 📧 Email - For security issues: [email protected]
- ⭐ GitHub - Star us for updates
- 🐦 Twitter - Follow @ConsoleWarrior
- 📝 Blog - Read our development updates
Special thanks to:
- 🥷 Console Ninja team for inspiration
- 🎨 VS Code team for the amazing extension API
- 💖 Open Source community for making this possible
- 🚀 All contributors who make this project better
- VS Code Extension API Documentation
- Extension Development Guidelines
- Yarn Package Manager
- Vite Build Tool
Made with ❤️ by MacroxW, for developers