title: How can I debug Gulp tasks using Node Tools for Visual Studio?
body: <p>I recently installed <a href="https://github.com/Microsoft/nodejstools" rel="nofollow noreferrer">NodeJS Tools for Visual Studio</a> which touts support for Node environments in VS. Notably, it has the ability to set debug breakpoints from the IDE.</p>
  
  <p>It's unclear to me if it is possible to set breakpoints when debugging Gulp tasks. The Task Runner has the ability to detect the Gulp task and output <code>console.log</code> statements to a window, but I haven't found a better means of debugging.</p>
  
  <p>I found this post from a while back: <a href="https://stackoverflow.com/questions/28389037/how-can-i-debug-gulpfile-js-when-running-it-with-visual-studio-task-runner-explo">How can I debug gulpfile.js when running it with Visual Studio Task Runner Explorer?</a> However, this post doesn't involve NodeJS Tools for VS. So, I'm re-asking the question to take that plugin into consideration.</p>
  
  <p><a href="https://i.stack.imgur.com/TGk7K.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TGk7K.png" alt="enter image description here"></a></p>