
- #Webstorm debug webpack how to#
- #Webstorm debug webpack install#
- #Webstorm debug webpack upgrade#
- #Webstorm debug webpack code#
#Webstorm debug webpack how to#
#Webstorm debug webpack upgrade#

Now it uses some memory like approach.īut you can find the ts Files in the Chrome Developer Tools in the "Sources" tab. WebStorm should be debugging your client-side code, and should stop at breakpoints as expected.The new angular/cli version uses webpack which does not compile the ts files to an local directory like dist before (till beta 1.0.0-beta.10). Set some breakpoints in the client-side code. Start the application by clicking start in the npm panel, or typing npm start from the command line. Give the configuration a name.Įnter the URL to your app in the “URL:” field. Choose Run -> Edit Configuration, then add a “JavaScript Debug” item. I haven’t needed to try these steps yet, but I understand this is the procedure:Ĭreate a new Run/Debug Configuration. WebStorm starts debugging your server-side code, and should stop at breakpoints as expected. In WebStorm, choose Debug (Ctl-D) for the configuration you created in 4. Set some breakpoints in the server-side code. For react-starter-kit, it’s “build/server.js”īuild all the files by double-clicking “build” in the npm panel, or typing npm build in the command line.
#Webstorm debug webpack code#
Give the configuration a name, and if it isn’t already there, enter the path to your Node.js binary.Įnter the path to your react-starter-kit project folder in “Working Directory”.įor the “Javascript file:” enter the server-side code in the “build” directory.

Choose Run -> Edit Configuration, then add a “Node.js” item. Look in the same file near line 156 for a line like this, and change it to:įilename: DEBUG ? '.js' : '.js',Ĭreate a new Run/Debug Configuration. You also have to remove references to “hash” from the output filenames. Look in for a line containing devtool (near line 204), and change it to: You’ll need to tell webpack to generate source maps when debugging.
#Webstorm debug webpack install#
Clone the react-starter-kit repo, then npm install as usual.Update: WebStorm 2016.1 can automatically create the React Starter Kit 0.5.1 when you choose New Project… Debugging Server-side Code These steps worked for me with WebStorm 2016.1 on OSX 10.10.5. My application was built using react-starter-kit 0.5.1 – which is the current build as of mid-March 2016. The instructions came from a ticket WEB-20781, but they’re not in one place, so I figured I would write them out. It recently became possible to debug both server-side and client webpack applications with JetBrains’ WebStorm.
