Install Asset
Install via Godot
To maintain one source of truth, Godot Asset Library is just a mirror of the old asset library so you can download directly on Godot via the integrated asset library browser

Quick Information

A powerful, feature-rich debug console addon for Godot 4.x, providing a terminal-like interface within the editor and runtime. It supports command chaining, autocomplete, and context-aware commands. Perform file operations, create resources, debug performance, and extend functionality with your own commands, all from an integrated console panel.
Debug Console for Godot
A powerful, feature-rich debug console addon for Godot 4.x that provides an integrated terminal-like experience within the Godot editor and runtime.
Overview
The Debug Console transforms your Godot development workflow by providing a comprehensive command-line interface directly within the editor. It offers file management, project operations, debugging tools, and extensible command system - all accessible through an intuitive terminal-like interface.
Features
Core Functionality
- Integrated Console - Native bottom panel integration like Output/Debugger
- Extensible Command System - Register custom commands with help system
- Smart Autocomplete - Context-aware suggestions for commands, files, and node types
- Command Piping - Chain commands with
|
operator (e.g.,ls | grep .gd
) - Context Awareness - Different commands available in editor vs runtime
File Management
- File Operations - Create, copy, move, delete files and directories
- Script Generation - Generate scripts, scenes, and resources with templates
- Directory Navigation - Full filesystem navigation with
cd
,pwd
,ls
- Auto Refresh - FileSystem dock updates automatically after operations
Development Tools
- Text Processing -
grep
,head
,tail
,find
for file content analysis - Project Control - Save scenes, run/stop project
- Debugging - FPS monitoring, node counting, pause control
- Testing Framework - Comprehensive test suite with 100+ test cases
Runtime Features
- Game Console - In-game debug console accessible via F12
- Performance Monitoring - Real-time FPS and performance metrics
- Game Control - Pause, timescale, and runtime debugging
Screenshots
[Screenshots will be added here]
Installation
Method 1: Manual Installation
- Download the addon files from this repository
- Copy the
addons/debug_console
folder to your Godot project'saddons/
directory - Enable the addon in Project Settings β Plugins
- Restart the Godot editor
Method 2: Git Submodule
cd your-godot-project
git submodule add https://github.com/your-username/debug-console.git addons/debug_console
Quick Start
Editor Console
- Open Console - Press
Ctrl + `
or find "Debug Console" in the bottom panel - Try Commands - Start with
help
to see available commands - Navigate - Use
ls
to list files,cd
to change directories - Create Files - Use
touch filename.txt
ornew_script MyScript
Game Console
- Run Project - Start your Godot project
- Open Console - Press
F12
to toggle the game console - Debug - Use
fps
,nodes
,pause
for runtime debugging
Command Reference
File Operations
ls # List files in current directory
cd <directory> # Change directory
pwd # Show current directory
mkdir <name> # Create directory
touch <filename> # Create file
cp <source> <dest> # Copy file
mv <source> <dest> # Move/rename file
rm <filename> # Delete file
rmdir <directory> # Remove directory
Content Creation
new_script <name> [extends_type] [class_name] # Create script file
new_scene <name> [root_type] # Create scene file
new_resource <name> [resource_type] # Create resource file
Text Processing
cat <filename> # View file contents
grep <pattern> [file] # Search for text patterns
head [lines] [file] # Show first N lines
tail [lines] [file] # Show last N lines
find <pattern> # Find files by name
stat <filename> # Show file information
Project Control
save_scenes # Save all open scenes
run_project [scene] # Run main scene or specified scene
stop_project # Stop currently running project
Console Management
clear # Clear console output
help [command] # Show available commands or command help
history # Show command history
echo <text> # Print text to console
Testing
test # Run comprehensive test suite
test_commands # Test command system
test_autocomplete # Test autocomplete functionality
test_files # Test file operations
test_pipes # Test command piping
Runtime Commands (Game Mode)
fps # Show current FPS
nodes # Count nodes in scene tree
pause # Toggle game pause
timescale <value> # Set game time scale
Keyboard Shortcuts
Shortcut | Action |
---|---|
Ctrl + ` |
Toggle editor console |
F12 |
Toggle game console |
Enter |
Execute command |
Tab |
Autocomplete |
Up/Down |
Navigate command history |
Ctrl + L |
Clear console |
Architecture
Project Structure
addons/debug_console/
βββ core/
β βββ CommandRegistry.gd # Command registration and execution
β βββ BuiltInCommands.gd # Built-in command implementations
β βββ DebugCore.gd # Core logging and initialization
βββ editor/
β βββ EditorConsole.gd # Editor console UI and logic
β βββ EditorConsole.tscn # Editor console scene
βββ game/
β βββ GameConsole.gd # Runtime console UI
β βββ GameConsole.tscn # Game console scene
β βββ GameConsoleManager.gd # Runtime console management
βββ tests/
β βββ TestFramework.gd # Comprehensive test suite
βββ icons/
β βββ console_icon.svg # Console icon
βββ plugin.gd # Main plugin entry point
Core Components
- CommandRegistry - Manages command registration, execution, and piping
- BuiltInCommands - Implements all built-in commands with context awareness
- EditorConsole - Editor-specific UI with autocomplete and file integration
- GameConsole - Runtime console with performance monitoring
- TestFramework - 100+ test cases covering all functionality
Development
Adding Custom Commands
# Register a new command
CommandRegistry.register_command(
"my_command", # Command name
_my_command_function, # Function to call
"Description", # Help text
"editor" # Context (editor/game/both)
)
# Implement the command function
func _my_command_function(args: Array) -> String:
return "Command executed successfully"
Command Piping
Commands can be chained using the |
operator:
ls | grep .gd # List only .gd files
cat script.gd | grep func # Find function definitions
find .gd | head 5 # Show first 5 .gd files
Testing
The addon includes a comprehensive test suite with 100+ test cases:
# Run all tests
test
# Run specific test categories
test_commands
test_autocomplete
test_files
test_pipes
Contributing
We welcome contributions! Please see CONTRIBUTING.md for detailed guidelines.
Quick Contribution Guide
- Fork the repository
- Create a feature branch
- Make changes and add tests
- Run tests to ensure 100% pass rate
- Submit a pull request
Testing
The Debug Console includes a comprehensive test suite with over 100 test cases covering command registration, file operations, autocomplete, piping, UI components, performance, and error handling.
Run test
in the console to execute the full test suite. See the testing documentation for detailed information.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
Getting Help
- GitHub Issues - Report bugs and request features
- GitHub Discussions - Ask questions and share ideas
- Documentation - Check code comments for implementation details
Community
- Discord - Join our community server
- Reddit - r/godot for general Godot discussions
- Godot Forums - Official Godot community forums
Changelog
v1.0.0 (Current)
- Initial release with comprehensive feature set
- Full file management capabilities
- Extensible command system
- Comprehensive test suite (100+ tests)
- Editor and runtime console support
- Command piping functionality
- Context-aware commands (editor vs game)
- Smart autocomplete system
Acknowledgments
- Godot Engine - For the amazing game engine that makes this possible
- Godot Community - For inspiration and feedback
- Contributors - Everyone who has helped improve this addon
Made with love for the Godot community
A powerful, feature-rich debug console addon for Godot 4.x, providing a terminal-like interface within the editor and runtime. It supports command chaining, autocomplete, and context-aware commands. Perform file operations, create resources, debug performance, and extend functionality with your own commands, all from an integrated console panel.
Reviews
Quick Information

A powerful, feature-rich debug console addon for Godot 4.x, providing a terminal-like interface within the editor and runtime. It supports command chaining, autocomplete, and context-aware commands. Perform file operations, create resources, debug performance, and extend functionality with your own commands, all from an integrated console panel.