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

'print' command in command line debugger does not show anything #73389

Closed
wenqiangwang opened this issue Feb 15, 2023 · 1 comment · Fixed by #97218
Closed

'print' command in command line debugger does not show anything #73389

wenqiangwang opened this issue Feb 15, 2023 · 1 comment · Fixed by #97218

Comments

@wenqiangwang
Copy link
Contributor

Godot version

4.0 RC2

System information

Mac OS 13.1

Issue description

When using Godot command line debugger (via executing 'Godot -d ...'), 'p' (alias of 'print') command does not show anything in terminal instead of a blank line, regardless the express is a string or a variable name, just like below.

debug> p 'a'

Steps to reproduce

  1. Run 'Godot -d project.godot' from command line
  2. Add a line 'var a = 1/0' some where in a script
  3. Save the script to trigger a break in command line debugger
  4. Type "p 'foo'" in terminal
  5. It should print out a blank line

Minimal reproduction project

Any project will do.

@wenqiangwang
Copy link
Contributor Author

I created a fix for it. It is fairly simple, only affecting the local debugger. Please review.

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