How to remote debuggin nodejs app on crossbar.io using Webstorm?

#1

Its posible?

0 Likes

#2

maybe

···

Am 20.11.2015 um 17:09 schrieb Javier Girón:

Its posible?

0 Likes

#3

That Im trying to test con Webstorm
using this method

https://www.binarysludge.com/2012/02/21/phpstorm-remote-debugging-node-js-on-a-foreign-host-jetbrains-webstorm-rubymine/

then I add to my crossbar.conf

{
“type”: “guest”,
“executable”: “node”,
“arguments”: [
“–debug-brk=5858”,
“app.js”,
“ws://127.0.0.1:9000”,
“realm1”,
“server1”,
“*************”
],
“options”: {
“workdir”: “…/services”,
“watch”: {
“directories”: ["…/services"]
}
}
}


on my config.

ACtually Seems to work., but crossbar.io end the Guest automactly once I get debugger conected :confused:

Which would be the proper way t work debug on my app?


<details class='elided'>
<summary title='Show trimmed content'>&#183;&#183;&#183;</summary>

El viernes, 20 de noviembre de 2015, 11:09:38 (UTC-5), Javier Girón escribió:
> Its posible?

</details>
0 Likes

#4

Not sure, but you probably want to be covering your Node code with unit testing rather than relying on debuggers.

Regards
Andrew Eddie

0 Likes

#5

Yes, Its exactly that I did

Thank you !

···

El lunes, 23 de noviembre de 2015, 14:56:53 (UTC-5), Andrew Eddie escribió:

Not sure, but you probably want to be covering your Node code with unit testing rather than relying on debuggers.
Regards
Andrew Eddie

0 Likes