# How to set environment variable on Mac, then run Anki ? Need to see console output

**URL:** <https://forums.ankiweb.net/t/how-to-set-environment-variable-on-mac-then-run-anki-need-to-see-console-output/29910>\
**Category:** Help\
**Created:** [May 2, 2023, 1:35am UTC](https://forums.ankiweb.net/t/how-to-set-environment-variable-on-mac-then-run-anki-need-to-see-console-output/29910 "2023-05-02T01:35:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucw](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/lucw/32/29840_2.png) [@lucw](https://forums.ankiweb.net/u/lucw)\
**Post date:** [May 2, 2023, 1:35am UTC](https://forums.ankiweb.net/t/how-to-set-environment-variable-on-mac-then-run-anki-need-to-see-console-output/29910/1 "2023-05-02T01:35:32Z")

</div>

I’m helping out a fellow HyperTTS user with a problem on Mac, I need to set an environment variable to enable HyperTTS debug logging. I’ve instructed the user to run  
export HYPER\_TTS\_DEBUG\_LOGGING=enable  
then run Anki from the terminal, but it doesn’t seem to result in any output on the terminal.

Is there a trick to enable Anki to log on the terminal ?

Thank you.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [May 2, 2023, 4:30am UTC](https://forums.ankiweb.net/t/how-to-set-environment-variable-on-mac-then-run-anki-need-to-see-console-output/29910/2 "2023-05-02T04:30:00Z")

</div>

If they don’t see any output, maybe they’re not starting Anki from the terminal, or they’re using ‘open /path/to/Anki.app’ instead of [Console Output - Writing Anki Add-ons](https://addon-docs.ankiweb.net/console-output.html#macos)

---

<div class="post-metadata">

**Author:** ![lucw](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/lucw/32/29840_2.png) [@lucw](https://forums.ankiweb.net/u/lucw)\
**Post date:** [May 2, 2023, 7:54am UTC](https://forums.ankiweb.net/t/how-to-set-environment-variable-on-mac-then-run-anki-need-to-see-console-output/29910/3 "2023-05-02T07:54:43Z")

</div>

great, it works when they just run

```auto
/Applications/Anki.app/Contents/MacOS/anki

```

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [June 1, 2023, 7:55am UTC](https://forums.ankiweb.net/t/how-to-set-environment-variable-on-mac-then-run-anki-need-to-see-console-output/29910/4 "2023-06-01T07:55:40Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
