[ 
https://issues.apache.org/jira/browse/DRILL-6270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16405700#comment-16405700
 ] 

Paul Rogers edited comment on DRILL-6270 at 3/20/18 2:14 AM:
-------------------------------------------------------------

Three suggestions.

1. To prevent future conflicts, pick a flag name such as {{\-d 
\-agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n}} or, to be 
consistent with the existing {{\-\-config}} and {{\-\-site}} options, maybe 
{{\-\-debug \-agentlib: 
jdwp=transport=dt_socket,server=y,address=8000,suspend=n}} (two dashes).

2. Since all we are doing is passing a flag to the JVM, maybe generalize your 
flag: {{--java -<some java flag>}}.

3. Even this is not entirely necessary. You can just do the following:

{code}
export 
DRILL_JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n
drillbit.sh start
{code}

To make this even easier, put it in a script so you don't have to either a) 
keep setting and unsetting the options, or b) remember the long flag to pass 
into the command line.


was (Author: paul-rogers):
Three suggestions.

1. To prevent future conflicts, pick a flag name such as {{-d 
-agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n}} or, to be 
consistent with the existing {{--config}} and {{--site}} options, maybe 
{{--debug -agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n}} 
(two dashes).

2. Since all we are doing is passing a flag to the JVM, maybe generalize your 
flag: {{--java -<some java flag>}}.

3. Even this is not entirely necessary. You can just do the following:

{code}
export 
DRILL_JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n
drillbit.sh start
{code}

To make this even easier, put it in a script so you don't have to either a) 
keep setting and unsetting the options, or b) remember the long flag to pass 
into the command line.

> 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: Minor
>
> 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.
> Example: drillbit.sh start -<debug flag> 50001



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to