# How to see output of console.log while debugging code?

**URL:** <https://forum.ghost.org/t/how-to-see-output-of-console-log-while-debugging-code/29407>\
**Category:** Developer help\
**Created:** [April 4, 2022, 5:21pm UTC](https://forum.ghost.org/t/how-to-see-output-of-console-log-while-debugging-code/29407 "2022-04-04T17:21:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunknudsen](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sunknudsen/32/16536_2.png) [@sunknudsen](https://forum.ghost.org/u/sunknudsen)\
**Post date:** [April 4, 2022, 5:21pm UTC](https://forum.ghost.org/t/how-to-see-output-of-console-log-while-debugging-code/29407/1 "2022-04-04T17:21:25Z")

</div>

I am currently debugging a SMTP issue where [configAddress](https://github.com/TryGhost/Ghost/blob/main/core/server/services/mail/GhostMailer.js#L25) is not set even though it is set in `config.development.json` (same config works in production, but not locally).

I added `console.log({requestedFromAddress, configAddress, address})` after `const address = requestedFromAddress || configAddress;`.

How can I see output of console.log? Tried using `ghost run`, but `run` appears to not use `config.development.json`.

Thanks for helping out!

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [April 4, 2022, 7:10pm UTC](https://forum.ghost.org/t/how-to-see-output-of-console-log-while-debugging-code/29407/2 "2022-04-04T19:10:56Z")

</div>

> [@sunknudsen](#):
>
> Tried using `ghost run` , but `run` appears to not use `config.development.json` .

`ghost run --development` should 🙂

---

<div class="post-metadata">

**Author:** ![sunknudsen](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sunknudsen/32/16536_2.png) [@sunknudsen](https://forum.ghost.org/u/sunknudsen)\
**Post date:** [April 4, 2022, 8:01pm UTC](https://forum.ghost.org/t/how-to-see-output-of-console-log-while-debugging-code/29407/3 "2022-04-04T20:01:04Z")

</div>

Amazing, thanks! That worked!
