How do I display an object with all its properties for debugging in Java Script? The Problem One of the most common debugging techniques in Java Script and Type Script, both in the browser and Node.js, is to print an object to the console or in an alert popup.