Skip to content

Where does print() go? #68

Answered by gilzoide
ac-marshy asked this question in Q&A
Apr 4, 2025 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hey @ac-marshy, thanks for the question.

Ok, so by default, Lua's print function prints the contents to the process's (in this case the Godot editor or game) standard output. If you open them from a terminal (or cmd or powershell in Windows), you should see the contents printed in the terminal. When you play a game from the Godot editor, if you can't see the output, its likely that the game's standard output is not connected to the editor (and this is in Godot's side). We need Godot's print functions to get stuff into the Output tab.

When you open only the LUA_BASE library, you only have Lua's print. When you open GODOT_UTILITY_FUNCTIONS, on the other hand, you get Godot's print function …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ac-marshy
Comment options

@gilzoide
Comment options

Answer selected by ac-marshy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants