A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://gist.github.com/prigara/7d559c78b51028e0860fd79d4e8733de below:

Debug console in WebStorm 2019.1 · GitHub

Last active February 28, 2019 16:47

Clone this repository at <script src="https://gist.github.com/prigara/7d559c78b51028e0860fd79d4e8733de.js"></script>

Save prigara/7d559c78b51028e0860fd79d4e8733de to your computer and use it in GitHub Desktop.

Debug console in WebStorm 2019.1

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters // Open this file in WebStorm // Right-click on it in the editor // Select Debug (this will run the file with Node.js) // Open the Debugger Console tab in the Debug tool window class Cat { constructor(name, age, color) { this.name = name; this.age = age; this.color = color; } } var nyanCat = new Cat("nyan", 999, "rainbow"); function listProperties(o) { console.group("Groups can be nested"); for (let p in o) { console.log(p, ": ", nyanCat[p]); } console.error("Something goes wrong"); console.warn("Or not"); console.warn("Not sure"); console.groupEnd(); } function groupDemo() { console.group("Groups"); console.groupCollapsed("Use groupCollapsed to collapse the output"); for (var i = 0; i < 500; i++) { console.log(i); } console.groupEnd(); listProperties(nyanCat); console.groupEnd(); } function stackTraces() { function f() { function g() { console.warn("Beware! Stack traces are collapsed by default."); } g(); } f(); } function demo() { console.log("%cDebug %cconsole in %s", "color: blue; font-weight: bold", "color: green", "WebStorm"); console.info("Objects are displayed using tree-view"); console.log(nyanCat); console.log("And can be displayed within text\n" + "Please meet the %o", nyanCat); console.log("You can display several objects in a row:\n %o and %o !", nyanCat, nyanCat); console.error("Ouch! Look what the cat did ->", nyanCat, "!!!!!"); stackTraces(); groupDemo(); debugger; } demo();

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3