Where does console output go
It's printed to the system console. If it's not opened, go to Window &gt; Toggle System Console.
Note that this option is only available on Windows. On other OS, start Blender from a terminal.
See here: https://docs.blender.org/manual/en/latest/advanced/command_line/introduction.html
You may also use this script:
Is there anyway to make blender print errors in the UI?