---
title: "Discussion on \"NodeJS: Using console.dir() over console.log() with deeply nested objects.\" | Hashnode"
description: "Discussion on \"NodeJS: Using console.dir() over console.log() with deeply nested objects.\". console.dir() seems rather redundant. At least with console.log(), you can add as many arguments as you want, but with console.dir(), you can only log one.\nDespite that, for debugging, I'll be using console.dir() more in future. Here's why?\nLet's tak..."
url: "https://hashnode.com/posts/nodejs-using-consoledir-over-consolelog-with-deeply-nested-objects/65c26bdff2574b18475d0ce3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [NodeJS: Using console.dir() over console.log() with deeply nested objects.](https://gemmablack.dev/nodejs-using-consoledir-over-consolelog-with-deeply-nested-objects?utm_source=hashnode&utm_medium=feed)

console.dir() seems rather redundant. At least with console.log(), you can add as many arguments as you want, but with console.dir(), you can only log one. Despite that, for debugging, I'll be using console.dir() more in future. Here's why? Let's tak...

Feb 6, 2024 · 3 min read · gemmablack.dev  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#debugging](https://hashnode.com/tag/debugging)
-   [#consolelog](https://hashnode.com/tag/consolelog)

## Written by

[Gemma Black](https://hashnode.com/@GemmaBlack)

@GemmaBlack · London, UK

  
[View profile](https://hashnode.com/@GemmaBlack)

I'm a Senior Software Engineer. With 10+ years working within tech teams, and 20+ years working with code, I develop across the stack, assisting with application design, maintenance, deployment and DevOps within the AWS Cloud.

## Responses 2

Markdown supported · ⌘↵ to post

[Gemma Black](https://hashnode.com/@GemmaBlack)

[Dec 30, 2024](https://hashnode.com/posts/nodejs-using-consoledir-over-consolelog-with-deeply-nested-objects/65c26bdff2574b18475d0ce3/comment/6772c7ef7a074db2e953fc9b)

Hi [Arthur Denner](https://hashnode.com/@arthurdenner). You raised a good point that I didn't highlight. Thank you for that. And thanks for the read too.

[Arthur Denner](https://hashnode.com/@arthurdenner)

[Dec 23, 2024](https://hashnode.com/posts/nodejs-using-consoledir-over-consolelog-with-deeply-nested-objects/65c26bdff2574b18475d0ce3/comment/676932c13ff9740983895d4c)

Thanks for the article. Through your examples, I also learned that JSON.stringify cannot handle Symbol, it outputs undefined. Interesting!
