Closed sscarduzio closed 7 years ago
sorry I should have used the forum for this as it's not a bug 🤦♂️
You're right, it's not an issue with the template, so I'm going to close this.
I can tell you that you're using the debugger wrong though. You need to use --debug-brk
, which will stop execution on the first line, which allows you to open the debugger and continue execution, at which point the chrome debugger will catch your debugger statement.
tl;dr use --debug-brk
instead of of just --debug
.
It seems odd that you get a debugger for all the other processes though (presumably the dev server and... I'm not sure what the 3rd process would be, are reading those settings too). That could be worth opening a bug in the Kibana repo for.
I saw instructions on how to debug Kibana code from here https://medium.com/@paul_irish/debugging-node-js-nightlies-with-chrome-devtools-7c4a1b95ae27
But I can't make it work for my plugin. This is what I tried:
I added a "debugger;" statement in the middle of my code, so I expect it to stop as it was a breakpoint.
Three node processes are started, all allow an inspector connection, but none of them is stopped at my "debugger;" statement as I open the chrome inspector.
I ran out of ideas :(