I've created the project and configuration using your steps. Sorry for the delay with getting back to you - these days were busy. Learning Node is somewhat down my list so I guess I'll simply use the server that works and forget about Grunt for now since it's not really a priority. Obviously I'm diving head first into a deep pool when I'm not sure I can swim but I'm keen to learn so here I go.Įdit: my preliminary conclusion is that the only reason that the Grunt debug isn't working is the fact that in some way, shape or form the server that Grunt starts does not like to be debugged by Storm. When I start the simple node server that comes with the Angular seed app and create a Javascript debug config it works and I get to debug as well. How do I get Grunt to cooperate with Storm and live editing? Does it even make sense to do that? I presume the first one is being loaded by Grunt, since I always specified the server as "localhost"?!? When I select "Run" as in Shift F10, two tabs open in chrome, one on 127.0.0.1:9000 and one on localhost:9000. "C:\Program Files\nodejs\node.exe" -debug-brk=58249 C:\Users\Seb\AppData\Roaming\npm\node_modules\grunt-cli\bin\grunt server When I do that, I only get the following console message: Project is open, now I add the debug/run config.Use existing server (this shouldn't matter, right? I'll be starting the server via grunt).Create new Yeoman scaffolding as per website instructions:.The goal is to use Yeoman and Friends to run a node.js server Here is my attempt to make it 100% reproducable. I guess the main question is whether it even makes sense to use "grunt server" with live editing (this guy is doing it also: ). Is there something beyond the simple path in " Run/Debug Configurations"? I'm probably missing some config step that I can't think of. When I run the debug in the todoMVC Storm opens the file in question in a new read only tab, which I presume is the expected behaviour. Are there any files in the project that are able to influence the config of the server or Storm? It has to be something along those lines. The todoMVC, where debugging works, also goes through the server though and the debug config is otherwise identical (or maybe I just don't know where to look?!?). What I did just find out is that the breakpoints work if I select the file in the document path (c:\xampp\.) rather than going through the web server and localhost. I'm talking about the "Run/Debug Configurations" window. The dbeug config simply points to the url, right? I'm not doing anything before launch. So far it's almost exactly the angular-seed project so not much going on. Yes the app starts fine without debugging.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |