0
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^

SyntaxError: missing ) after argument list

I'm trying to debug the Nightwatch code. Can anyone help me in resolving this issue

Tyler Roper
  • 21,445
  • 6
  • 33
  • 56
  • I also wanna know how does debugging work in Nightwatch. The same code works while I'm executing in Non-Debugging mode. – NashShetty Jul 17 '19 at 15:45
  • 1
    Personally I've never heard of nightwatch, but the first thing that sticks out is that you're using `"..."` to encapsulate a string that has unescaped `"` *inside* of it. That seems off to me. – Tyler Roper Jul 17 '19 at 15:48

1 Answers1

0

Change your debug parameter inside package.json like this:

"debug": "node --inspect-brk node_modules/nightwatch/bin/nightwatch"

and run - npm run debug in the terminal

gigs
  • 1,241
  • 2
  • 15
  • 25