-
-
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
print_debug prints in release mode #48068
Comments
It's possible that this only happens with file logging, rather than stdout logging. However, on Windows, you can't inspect a program's command line output from a command prompt if it was compiled with the GUI subsystem (rather than the console subsystem). Release export templates are compiled with the GUI subsystem, unlike the editor and debug export templates which are compiled with the console subsystem. |
Can confirm this under Linux (Ubuntu 20.04) with 3.3 stable. Release builds, 64-bit. Using release mode, I get this output on the terminal:
godot.log is a copy of a log file from an exported program run in release mode. |
According to the Pull Request #18966 and the implemented feature issues #3884 and #18319, it wasn't intended that More importantly, there was an issue #6253, where this feature (only printing in debug mode) was rejected:
The doc to So for me the doc is just wrong. |
Fixed by #63243. |
Godot version:
v3.2.3.stable.official
OS/device including version:
Windows 10 64-bit Build 19041.928
Issue description:
Using print_debug in an exported build with mode "Release" prints messages.
According to the docs, it is expected that
print_debug
only prints when exported in debug mode or ran from the IDE.Steps to reproduce:
print_debug("anything")
-> It prints "anything"
Minimal reproduction project:
Test_print_debug.zip
Note: In this project, there is also a comparison code using OS.is_debug_build, which works correctly.
The text was updated successfully, but these errors were encountered: