# "Errors" - what am I supposed to see in the \`debug\` window?

**URL:** <https://discourse.nodered.org/t/errors-what-am-i-supposed-to-see-in-the-debug-window/101312>\
**Category:** General\
**Created:** [19 June 2026 02:05 UTC](https://discourse.nodered.org/t/errors-what-am-i-supposed-to-see-in-the-debug-window/101312 "2026-06-19T02:05:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [19 June 2026 02:05 UTC](https://discourse.nodered.org/t/errors-what-am-i-supposed-to-see-in-the-debug-window/101312/1 "2026-06-19T02:05:36Z")

</div>

I am really suffering just now.

Ok, I am writing code in a `function` node. NOT a `subflow`.  
I am sending it a message and am getting an error but it is vague.  
I seem to remember that I got more than just

```auto
TypeError: Cannot read properties of undefined (reading 'config')

```

In the window/list.

How do I get more informative messages?  
Please!

Oh, P.S.  
This if the config (exert)

```auto
    /** Configure the logging output */
     logging: {
         /** Only console logging is currently supported */
         console: {
             /** Level of logging to be recorded. Options are:
              * fatal - only those errors which make the application unusable should be recorded
              * error - record errors which are deemed fatal for a particular request + fatal errors
              * warn - record problems which are non fatal + errors + fatal errors
              * info - record information about the general running of the application + warn + error + fatal errors
              * debug - record information which is more verbose than info + info + warn + error + fatal errors
              * trace - record very detailed logging + debug + info + warn + error + fatal errors
              * off - turn off all logging (doesn't affect metrics or audit)
              */
             level: "info",
             /** Whether or not to include metric events in the log output */
             metrics: false,
             /** Whether or not to include audit events in the log output */
             audit: false
         }

```

Seems to work ok on other machines with the same settings.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [19 June 2026 02:58 UTC](https://discourse.nodered.org/t/errors-what-am-i-supposed-to-see-in-the-debug-window/101312/2 "2026-06-19T02:58:35Z")

</div>

The error is that you are trying to use a property of an object that does not exist.  
Something like `const abc = msg.engine.config` when **msg.engine** does not exist.

In fact there is a bit more info in the second line of the error message stack, it tells you the name of the function, and the line and column where the error was seen.

Here it's function 31, line 6 column 25

```auto
TypeError: Cannot read properties of undefined (reading 'title')
    at Function node:2c5245edf0103f58 [function 31]:6:25

```

I think the line number is always reported 1 too high, so the t of title in my function is the 25th character of line 5.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [19 June 2026 03:00 UTC](https://discourse.nodered.org/t/errors-what-am-i-supposed-to-see-in-the-debug-window/101312/3 "2026-06-19T03:00:55Z")

</div>

Thanks.

Yeah, I worked that out ITMT. (No offence.)

I should learn to read. 😉

Sorry folks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [3 July 2026 03:01 UTC](https://discourse.nodered.org/t/errors-what-am-i-supposed-to-see-in-the-debug-window/101312/4 "2026-07-03T03:01:34Z")

</div>

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