Skip to content
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

No print to Output panel in infinite loop #61244

Open
Gameoholic opened this issue May 21, 2022 · 2 comments
Open

No print to Output panel in infinite loop #61244

Gameoholic opened this issue May 21, 2022 · 2 comments

Comments

@Gameoholic
Copy link

Godot version

3.4.2.stable.official

System information

Windows 10

Issue description

When using a print statement in an infinite loop, nothing will be printed to the Output panel.
If the loop breaks, all will be printed to the output panel at once.
See issue #22184 that was supposedly fixed in 3.1.2, it's the same issue I'm encountering.

Steps to reproduce

Run this script:
func _ready():
var i = 0
while true:
i += 1
print(i)

Minimal reproduction project

No response

@Calinou
Copy link
Member

Calinou commented May 21, 2022

I think this is expected, as the debugger is only able to process things every time a frame is processed. If you enter an infinite loop, there are no more frames that can be processed.

However, we can look into implementing some kind of engine freeze/infinite loop detection in the editor when the project is running.

@KoBeWi
Copy link
Member

KoBeWi commented May 22, 2022

Well, I can see the output:
godot_W97w1hu4cA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants