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

wangwei commented on SINGA-69:
------------------------------

compile with debug is enable by 

{code}
./configure --enable-debug
make
{code}

to debug

{code}
gdb .libs/singa
set args -conf ...
run
...
{code}

> Add debug option in compilation configuration
> ---------------------------------------------
>
>                 Key: SINGA-69
>                 URL: https://issues.apache.org/jira/browse/SINGA-69
>             Project: Singa
>          Issue Type: Improvement
>            Reporter: wangwei
>            Assignee: Xie Zhongle
>
> The current Makefile generated from *./configure* compiles SINGA without 
> debug information.
> To debug SINGA, developers have to use the Makefile.example file and manually 
> add the *-g* flag into the CXXFLAGS.
> It would be better to add an option for *./configure* to add *-g* in the 
> generated Makefile, e.g., 
> {code}
> ./configure --with-debug
> {code}
> Then we can remove the Makefile.example.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to