From 13d98926378f45bbcb57ced6ebf81507c671823a Mon Sep 17 00:00:00 2001 From: David Laird Date: Sun, 24 Nov 2019 23:09:00 -0800 Subject: [PATCH] Update debug methods to use latest node-debug flag --- markdown/docs/user-guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/markdown/docs/user-guide.md b/markdown/docs/user-guide.md index 2a39141..3d3f935 100644 --- a/markdown/docs/user-guide.md +++ b/markdown/docs/user-guide.md @@ -814,12 +814,12 @@ Since the `ember serve` command does a full build when launched, this becomes ag Avoid the slowness by manually running the build in normal mode, then run FastBoot in debug mode without doing a build: ```sh -ember build && node --debug-brk ./node_modules/.bin/ember serve +ember build && node --inspect-brk ./node_modules/.bin/ember serve ``` This does a full rebuild and then starts the FastBoot server in debug mode. -Note that the `--debug-brk` flag will cause your app to start paused to give you a chance to open the debugger. +Note that the `--inspect-brk` flag will cause your app to start paused to give you a chance to open the debugger. Once you see the output `debugger listening on port 5858`, visit in your browser. Once it loads, click the "Resume script execution" button (it has a ▶︎ icon) to let FastBoot continue loading.