-
-
Notifications
You must be signed in to change notification settings - Fork 21k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debug_print option for printing stuff to the debugger window? #6253
Comments
Right now you can use |
Hadn't been aware of the existence of |
If you're looking to print to stderr, you can also use printerr(). |
@Gastronok The problem with printerr is that it won't show up in the editor at all, which decreases its utility a lot. |
Since it is possible to easily implement this feature by adding a very short function to a singleton, I'm closing this. (It is also more flexible this way.) |
Operating system or device - Godot version:
OS is N/A, Godot version? 2.0 and up I guess.
Issue description (what happened, and what was expected):
Inspired by https://twitter.com/ProbDenis/status/741981375604137984 - when running a game in debug mode (be it in the editor or using a debug-enabled export option), it'd be nice to have a print_debug command (or similar), so that certain types of messages don't get printed in a release game (if run from terminal or whatnot).
Functionally it should be identical to print as-is, other than it not printing to stdout but stderr.
The text was updated successfully, but these errors were encountered: