Because Anki is a GUI app, text output to stdout (e.g.print("foo")) is not
usually visible to the user. You can optionally reveal text printed to stdout,
and it is recommended that you do so while developing your add-on.
Anki uses stdout to print warnings about API deprecations, eg:
addons21/mytest/__init__.py:10:getNote is deprecated: please use 'get_note'
If these warnings are occurring in a loop, please address them promptly, as they can slow Anki down even if the console is not shown.
You may find it useful to print text to stdout to aid in debugging your add-on. Please avoid printing large amounts of text (e.g.in a loop that deals with hundreds or thousands of items), as that may slow Anki down, even if the console is not shown.
If you start Anki via the anki-console.exe file (or anki-console.bat file
for Anki versions before 25.07) in %LocalAppData%\Programs\Anki (or
C:\Program Files\Anki), a separate console window will appear.
Open Terminal.app, then enter the following text and hit enter:
For Anki 25.07 and later, enter
/Applications/Anki.app/Contents/MacOS/launcher
For Anki versions before 25.07, enter
/Applications/Anki.app/Contents/MacOS/anki
Open a terminal/xterm, then run Anki with anki