课程: Learning JavaScript Debugging

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Debugging a Node.js application in WebStorm

Debugging a Node.js application in WebStorm - JavaScript教程

课程: Learning JavaScript Debugging

Debugging a Node.js application in WebStorm

- [Instructor] In this video we're going to debug a simple node script in WebStorm, a very nice IDE. It was PhpStorm, WebStorms sibling, that turned me into an IDE believer. Our example is a little node script that will collect Lorem Ipsum placeholder text from this website, lipsum.com. We want to return the text in a form suitable for pasting into a page or wherever we might need some placeholder text. One of the nice things about lipsum.com is that they offer an API that makes custom scripting possible. First, I'm going to show you how this script works in its current state. I'm here in a terminal where I've changed directories to the exercise files for this video, and you can see that I have the gitlipsum.js file here. so let's execute that through node. It prompts me for how many paragraphs I want. I'm going to choose two. It retrieves the data and then gives it back to me, but it's in the form of this massive JSON…

内容