Allow jbang --debug
to connect to a debugger
#1640
Labels
ideas
Some idea/suggestion around jbang behavior/feature set
jbang --debug
to connect to a debugger
#1640
Is your feature request related to a problem? Please describe.
I'd like to run JBang so it connects to a debugger that is listening for incoming connections.
The main advantage over JBang listening for a connection from a debugger is that in IntelliJ I can check "Auto restart" in the remote debug configuration, and a new debug session will start automatically every time I re-run the jbang script.
Describe the solution you'd like
When I run
jbang --debug=server=n,address=localhost:5005
, JBang should connect to my IDE listening on port 5005 instead of trying to listen on port 5005 itself.It would also be nice to get a description of the
--debug
arguments injbang --help
.Describe alternatives you've considered
I can keep using
server=y
and start the debugger manually every time I run the script.Or there may be an enviromnent variable that gives me finer control over the debug arguments.
The text was updated successfully, but these errors were encountered: