Yes, I can run it with --host_jvm_debug, and then connect to it using jdb -attach localhost:5005. Interestingly, I don't seem to be able to connect to it with Intellij's IDE debugger using "Run -> Attach to Local Process". I get just a dialog box with "No processes to attach to", even though I see the bazel server running with "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=5005" in the output of ps.
Moreover, on the Contributing Page, it says
"Our IntelliJ plugin has built-in debugging support"
which I took to mean that one would be able to just use Run->Debug... for a bazel run configuration consisting of "run //src:bazel". With the packaging of bazel into an ELF binary and embedded zip package (with A-server.jar) though, that definitely doesn't seem to be the case.
I was wondering if someone can give their standard bazel development Intellij run/debug configurations and process by which they use to debug bazel.
Thanks
E>