User Tools

Site Tools


Sidebar

General

Python Tutorials

WebGL Tutorials

Node.js Tutorials

Node.js in WebStorm


Martin Christen

View Martin Christen's profile on LinkedIn


Twitter

Timeline of @MartinChristen

MartinChristen avatar

On my way to the 3D city model workshop in Bonn where I‘m presenting our latest @igeoFHNW #AugmentedReality App… https://t.co/8ghq4GfZW5
About 5 days, 6 hours ago by: Martin Christen (@MartinChristen)

MartinChristen avatar

Teaching #Python to 11-13-year-old girls was great fun today at the Swiss national future day (#zukunftstag).… https://t.co/1lDmWdl02D
About 1 week, 2 days ago by: Martin Christen (@MartinChristen)

MartinChristen avatar

RT @GeoPythonConf: Interested in joining GeoPython 2019? Register to the mailing list: https://t.co/ub3CU7L5WL #python #GeoPython #geospat…
About 2 weeks, 2 days ago by: Martin Christen (@MartinChristen)
node:webstorm

Node.js and WebStorm

WebStorm has a node.js module integrated. It is very easy to run and debug applications from within WebStorm.

1. Creating a New Project

Create a new project and choose the project type “Empty project”. There are node.js project types, but don't use them as they use external frameworks we don't want to use at the moment.

2. Adding a JavaScript File

Once the project is created you can add a new JavaScript file to the project. Let's name this file “main.js”.

3. Run Configuration

Now we need to create a run configuration, which basically tells WebStorm to use node.js and our “main.js” as application. The run configuration window is opened using “Run/Edit Configurations…” menu.

4. Run and Debug the Application

Now you can run the application.

Extend the application by a few lines and add breakpoints.

Now start the debugger and you can step through your application. You can check your local variables or add watches etc…

node/webstorm.txt · Last modified: 2013/09/03 15:34 by mchristen