You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Rajika Kumarasiri (JIRA)" <ji...@apache.org> on 2011/02/06 09:19:30 UTC

[jira] Created: (QPID-3039) Enable debug info. in the Qpid build by default

Enable debug info. in the Qpid build by default
-----------------------------------------------

                 Key: QPID-3039
                 URL: https://issues.apache.org/jira/browse/QPID-3039
             Project: Qpid
          Issue Type: Wish
            Reporter: Rajika Kumarasiri


It'd be good if we can turn on the debugging information of the source by default. A production user must turn them off and re-compile if required. 

Rajika

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Updated: (QPID-3039) explicitly define the included debug info instead of relying on defaults which can differ between compilers

Posted by "Robbie Gemmell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-3039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robbie Gemmell updated QPID-3039:
---------------------------------

          Component/s: Ant Build System
    Affects Version/s: 0.5
                       0.6
                       0.7
                       0.8
        Fix Version/s: 0.9
             Assignee: Robbie Gemmell
           Issue Type: Improvement  (was: Wish)
              Summary: explicitly define the included debug info instead of relying on defaults which can differ between compilers  (was: Enable debug info. in the Qpid build by default)

> explicitly define the included debug info instead of relying on defaults which can differ between compilers
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-3039
>                 URL: https://issues.apache.org/jira/browse/QPID-3039
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Ant Build System
>    Affects Versions: 0.5, 0.6, 0.7, 0.8
>            Reporter: Rajika Kumarasiri
>            Assignee: Robbie Gemmell
>             Fix For: 0.9
>
>         Attachments: QPID-3039.patch
>
>
> It'd be good if we can turn on the debugging information of the source by default. A production user must turn them off and re-compile if required. 
> Rajika

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Updated: (QPID-3039) Enable debug info. in the Qpid build by default

Posted by "Rajika Kumarasiri (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-3039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rajika Kumarasiri updated QPID-3039:
------------------------------------

    Attachment: QPID-3039.patch

A small patch to fix the problem. 

Rajika

> Enable debug info. in the Qpid build by default
> -----------------------------------------------
>
>                 Key: QPID-3039
>                 URL: https://issues.apache.org/jira/browse/QPID-3039
>             Project: Qpid
>          Issue Type: Wish
>            Reporter: Rajika Kumarasiri
>         Attachments: QPID-3039.patch
>
>
> It'd be good if we can turn on the debugging information of the source by default. A production user must turn them off and re-compile if required. 
> Rajika

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Resolved: (QPID-3039) explicitly define the included debug info instead of relying on defaults which can differ between compilers

Posted by "Robbie Gemmell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-3039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robbie Gemmell resolved QPID-3039.
----------------------------------

    Resolution: Fixed

> explicitly define the included debug info instead of relying on defaults which can differ between compilers
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-3039
>                 URL: https://issues.apache.org/jira/browse/QPID-3039
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Ant Build System
>    Affects Versions: 0.5, 0.6, 0.7, 0.8
>            Reporter: Rajika Kumarasiri
>            Assignee: Robbie Gemmell
>             Fix For: 0.9
>
>         Attachments: QPID-3039.patch
>
>
> It'd be good if we can turn on the debugging information of the source by default. A production user must turn them off and re-compile if required. 
> Rajika

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Commented: (QPID-3039) Enable debug info. in the Qpid build by default

Posted by "Robbie Gemmell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-3039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12991153#comment-12991153 ] 

Robbie Gemmell commented on QPID-3039:
--------------------------------------

Hi Rajika,

I have just tested this patch and found it resulted in no difference in the compiled class files, they were 100% binary identical. If I change the new 'debuglevel' definition to be only "lines,source" then my compiled files do differ from normal and become smaller. This would explain why I have never had an issue remote debugging the default output and you have; your compiler obviously has different defaults than mine. Can I ask what JVM/JDK etc you are using?

The man page for javac (Sun JDK) and the manual page for the Ant javac task suggest that our existing javac usage should indeed result in inclusion of all debug information if using the Sun JDK, and always has in my case. However there is one area of ambiguity where it is mentioned that using javac -g without arguments will include all debug information, but then goes to says that it only generates lines and source debug info by default. My test clearly shows I am seeing the former behaviour, whereas you would seem to have seen the latter behaviour.

I have applied the patch, but will rename the JIRA to better indicate what is actually being changed.

Regards,
Robbie

> Enable debug info. in the Qpid build by default
> -----------------------------------------------
>
>                 Key: QPID-3039
>                 URL: https://issues.apache.org/jira/browse/QPID-3039
>             Project: Qpid
>          Issue Type: Wish
>            Reporter: Rajika Kumarasiri
>         Attachments: QPID-3039.patch
>
>
> It'd be good if we can turn on the debugging information of the source by default. A production user must turn them off and re-compile if required. 
> Rajika

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org