-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Keyboard interrupt no longer stops the command line debugger #19775
Comments
CC @bfloch |
(Tagging as "bug" for now, but it might actually be a feature as per c45f44d, so will retag accordingly once we know more about it.) |
I'd really like Ctrl+C to behave as it was, or at least have a console shortcut to do the same. |
Hi Zylann, Sorry to head q/quit does not exit Godot in some cases. As the the CTRL-C: It behaves as gdb or similar debuggers. I can not think of a different way to break into the debugger from a running application. |
On the Windows command line, Ctrl+C was pretty much the default for interrupting a process, since it worked not just for Godot but anything else I launch from a command. I thought Godot commands were supposed to be typed, not react to things like Ctrl+*. If Godot cannot support this anymore, I would just like an alternative that does the same thing (kill the process, |
I can confirm this issue with 3.1 stable on Mac through iTerm when in bash or zsh. You have to right click and "force quit" as |
I think this issue describes two problems:
To fix 1. we could add an additional debug options to turn this behaviour on (opt-in), which would probably meet peoples expectations for CTRL-C. It can not be implemented otherwise since the SIGINT (like) comes from the platform, if I am not mistaken.
|
Simple https://gist.github.com/bitwes/e9cdc95bea57e7b7db6b2ba166902c93 |
Can anyone still reproduce this bug in Godot 3.2.3 or any later release? |
It still happens in 3.2.3. |
On Linux with Godot 3.3.2 and I have a similar but, closely related issue. However, when I type this at the Godot debugger prompt it results in an infinite loop. |
quit
command immediately
#51387
Godot master ff01fd5
Windows 10 64 bits
Powershell
In Godot 3.0.4, I used to debug my plugin by using the command line debugger (
-e -d command line options
), and using Ctrl+C (keyboard interrupt) to break out of a script error and close Godot straight away. This was fast and also left the terminal open, allowing me to keep track of the logs and easily restart the session without retyping commands.Now I wanted to debug it using a build I made from master, but I noticed keyboard interruption no longer stops the process. Instead, the debugger just repeats the error. I tried using
q
for quitting, but it didn't quit and stayed blocked on the last script error, so the only way I could close was to close the terminal...The text was updated successfully, but these errors were encountered: