Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firefox remote debugging 'listen' command gives 'SyntaxError: missing ; before statement'

I'd like to develop AngularJS 2 web pages with Firefox + WebStorm on Windows.

For that, the WebStorm configuration manual tells to type listen 6000 at the Console command line. Though doing so gives a SyntaxError: missing ; before statement error message. listen 6000; does not help.

I suspect the listen command might be removed, as it gives ReferenceError: listen is not defined when executing it without port.

Of course, I already ticked the "Enable remote debugging" checkbox and restarted the browser.

Note that I'm using Firefox 49.

like image 381
Youngjae Avatar asked Jun 26 '26 15:06

Youngjae


1 Answers

The command line shown in the WebStorm documentation is the so called "Developer Toolbar", not the command line of the DevTools Console panel.

To open that toolbar press Shift + F2 or click the Firefox menu and choose Developer > Developer Toolbar.

When you enter listen 6000 in there, you should get a message 'Listening on port 6000' as confirmation that it was successfully executed.

like image 81
Sebastian Zartner Avatar answered Jun 28 '26 05:06

Sebastian Zartner



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!