JavaScript console.log causes error: “Synchronous XMLHttpRequest on the main thread is deprecated…”

I have been adding logs to the console to check the status of different variables without using the Firefox debugger. However, in many places in which I add a console.log in my main.js file, I receive the following error instead of my lovely little handwritten messages to myself: Synchronous XMLHttpRequest on the main thread is … Read more

Can’t access object property, even though it shows up in a console log

Below, you can see the output from these two logs. The first clearly shows the full object with the property I’m trying to access, but on the very next line of code, I can’t access it with config.col_id_3 (see the “undefined” in the screenshot?). Can anyone explain this? I can get access to every other … Read more

Node.js: printing to console without a trailing newline?

Is there a method for printing to the console without a trailing newline? The console object documentation doesn’t say anything regarding that: console.log() Prints to stdout with newline. This function can take multiple arguments in a printf()-like way. Example: console.log(‘count: %d’, count); If formating elements are not found in the first string then util.inspect is … Read more

How can I get the full object in Node.js’s console.log(), rather than ‘[Object]’?

I have this object: const myObject = { “a”:”a”, “b”:{ “c”:”c”, “d”:{ “e”:”e”, “f”:{ “g”:”g”, “h”:{ “i”:”i” } } } } }; But when I try to show it using console.log(myObject), I receive this output: { a: ‘a’, b: { c: ‘c’, d: { e: ‘e’, f: [Object] } } } How can I get … Read more