0 votes

Is there a debug option, or another method by which I can have all signals emitted (or a filter of signals that match a pattern/regex/string/etc.) printed to the console? When I debugging signals I find that I'm using print statements to know if a given code branch is reached where a signal is, rather than being able to tell if a signal was emitted directly or not.

So, curious if there's a time-ordered log or something similar that tells me all the signals that were emitted.

in Engine by (19 points)

1 Answer

+1 vote
Best answer

As far as I know there isn't a log that logs all signals emitted.
You should be able to log them yourself, either by print statements near every emit_signal or by creating a function that logs and connecting it to the signal. If you don't want to print every time the signal is emitted you can instead store some information in an array or dictionary, effectively making the logger yourself.

by (90 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.