Skip to content

VitSoonYoung/GodotDumdum-Debug-Menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GodotDumdum's Debug Menu

A collective of useful functions and debug menu for real-time debugging in Godot 4.

Debug Menu Code Example Console

Features

  • Customizable Debug Menu: Easily add custom buttons and actions.
  • Live-Updating Text: Monitor performance metrics or any variable in real-time.
  • Rich Console Logs: Timestamp, colors and >>hyperlinks to source code<<.
  • Auto-Disable: Automatically disables in production builds for zero overhead.

Hotkeys

  • [F1]: Toggle Debug Menu visibility.
  • [F2]: Take a screenshot (saved to user://screenshots).
  • [F3]: Pause/Unpause the game.

Installation

  • Download to your projects, verify the path:<root>/addons/debug
  • Enable via Project Settings > Plugins > GodotDumdum's Debug Menu > Check "Enable"

Usable Functions

# Logging
Debug.log(...messages)      # Print a standard log message.
Debug.warn(...messages)     # Print a yellow message.
Debug.error(...messages)    # Print an red message.
Debug.verbose(...messages)  # Print a gray debug message.

# Live Information
Debug.register_live(key, callback) # Register a function to display real-time info.
Debug.unregister_live(key)         # Remove a live-updating info item.

# ADd Menu Items
Debug.add_menu_item(text, function, arguments) # Add a custom action to the debug menu.
Debug.add_separator(text)                      # Add a separator or group header to the menu.

# Dialogs
Debug.dialog_input(title, callback, description, default)    # Show an input dialog.
Debug.dialog_confirm(title, description, on_confirm, on_cancel) # Show a confirmation dialog.

# Utilities
Debug.take_screenshot() # Capture and save a screenshot to the user folder.
Debug.time(id)          # Measure t the elapsed time between two calls with the same ID.

About

Customizable debug menu and console logging tools.

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors