From 5e6b303c30e7c215de09f3ef71b691b7f2928780 Mon Sep 17 00:00:00 2001 From: gitraj666 Date: Sun, 13 Oct 2019 23:12:49 +0530 Subject: [PATCH] Debugging an Example app #516 Added comment how to debug using node-inspector in grunt --- 00_simple/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/00_simple/README.md b/00_simple/README.md index d9ce707..a01dc8b 100644 --- a/00_simple/README.md +++ b/00_simple/README.md @@ -55,6 +55,12 @@ Now, pull up the app in your web browser. It defaults to port `3030`. You can choose a different port by passing the `PORT` environment variable: $ PORT=80 grunt server + +In order to use node_inspector with grunt run the following command with the script you want to debug +and put a debugger; line in your task. node-inspector will then open a browser with debugging toolsand put a debugger; line in your task. node-inspector will then open a browser with debugging tools + $ node-debug $(which grunt) task + +and put a debugger; line in your task. node-inspector will then open a browser with debugging tools ### GitHub API rate limit