Is there a way to print all signals

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By normalocity

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.

:bust_in_silhouette: Reply From: loipesmas

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.