Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong><em>Petr's post is correct but am adding some pictures to make this a little more clear for PHPStorm or WebStorm Newbies</em></strong></p> <hr> <blockquote> <p>1) FROM THE WEBSTORM MAIN MENU: <strong>Run->Edit Configurations...</strong> opens a dialog</p> <p>2) Click the [+] icon, then select the Node.js entry from the drop down if it's not already selected</p> </blockquote> <p><img src="https://i.stack.imgur.com/JMQOA.png" alt="Configuration Editor"></p> <blockquote> <p>3) This will open a Node.js template with the basic fields filled in. You will need to add the following fields <strong>Name, Working directory, Java script file, Application parameters</strong></p> </blockquote> <p><img src="https://i.stack.imgur.com/2wUd5.png" alt="enter image description here"></p> <p><strong>Name</strong> GRUNT or whatever you like </p> <p><strong>Working Directory</strong> C:\GRUNT-TASKPATH (or wherever the source for the grunt task is installed) which contains source, and also should contain a gruntfile.js</p> <p><strong>Javascript File</strong> "C:\Users\USERNAME\AppData\Roaming\npm\node_modules\grunt-cli\bin\grunt" This is the grunt node app, on linux/mac it will be in a different directory</p> <p><strong>Application Parameters</strong> TASKNAME The name of your grunt task that you are going to debug</p> <blockquote> <p>4) Don't forget to apply the settings you just made and press OK to close the dialog</p> <p>5) Open the task source that should be in your working directory under something like (tasks/taskname.js) and set a breakpoint </p> </blockquote> <p>That's it, you can now run or debug the task using the GRUNT configuration from the run menu, or the drop down in the toolbar.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload