[ https://issues.apache.org/jira/browse/DRILL-6270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anton Gozhiy updated DRILL-6270: -------------------------------- Description: Add possibility to run sqlline.sh and drillbit.sh scripts with --<debug flag> with standard java remote debug options with the ability to override port. It was decided to make a general flag (--jvm) to pass JVM options to the script to avoid hard coding the options that may change in future. Usage examples: {noformat} bin/drill-embedded --jvm "-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=50000,server=y,suspend=n" bin/sqlline -u "jdbc:drill:zk=zkaddr:port" --jvm "-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=50000,server=y,suspend=n" sqlline.bat -u "jdbc:drill:zk=local" --jvm "-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=50000,server=y,suspend=n" {noformat} The --jvm flag is not needed for drillbit startup, you can set the jvm properties directly after the start command: {noformat} bin/drillbit.sh start -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=50000,server=y,suspend=n {noformat} was: Add possibility to run sqlline.sh and drillbit.sh scripts with --<debug flag> with standard java remote debug options with the ability to override port. {noformat} Usage: --debug:[parameter1=value,parameter2=value] Optional parameters: port=[port_number] - debug port number suspend=[y/n] - pause until the IDE connects {noformat} Examples: {noformat} drillbit.sh start --debug:port=50001,suspend=y drill-embedded --debug:port=50001,suspend=y sqlline -u "jdbc:drill:zk=[zk_address];" --debug:port=50001,suspend=y {noformat} Also should work with sqlline.bat, but in this case the debug parameters should be wrapped up with quotes, like: {noformat} sqlline.bat -u "jdbc:drill:zk=local;" --debug:"port=50001,suspend=y" {noformat} > Add debug startup option flag for drill in embedded and server mode > ------------------------------------------------------------------- > > Key: DRILL-6270 > URL: https://issues.apache.org/jira/browse/DRILL-6270 > Project: Apache Drill > Issue Type: Task > Reporter: Volodymyr Tkach > Assignee: Anton Gozhiy > Priority: Major > Fix For: 1.14.0 > > > Add possibility to run sqlline.sh and drillbit.sh scripts with --<debug flag> > with standard java remote debug options with the ability to override port. > It was decided to make a general flag (--jvm) to pass JVM options to the > script to avoid hard coding the options that may change in future. > Usage examples: > {noformat} > bin/drill-embedded --jvm "-Xdebug -Xnoagent > -Xrunjdwp:transport=dt_socket,address=50000,server=y,suspend=n" > bin/sqlline -u "jdbc:drill:zk=zkaddr:port" --jvm "-Xdebug -Xnoagent > -Xrunjdwp:transport=dt_socket,address=50000,server=y,suspend=n" > sqlline.bat -u "jdbc:drill:zk=local" --jvm "-Xdebug -Xnoagent > -Xrunjdwp:transport=dt_socket,address=50000,server=y,suspend=n" > {noformat} > The --jvm flag is not needed for drillbit startup, you can set the jvm > properties directly after the start command: > {noformat} > bin/drillbit.sh start -Xdebug -Xnoagent > -Xrunjdwp:transport=dt_socket,address=50000,server=y,suspend=n > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)