How to show debug file?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to show debug file?

jackfser
hello,I just started this pro in ubuntu16.04.
I have build Qt environment with wiki instrution.And I open Qt creator build release version successfully.

  Then I need to track codes steps by rs_debug->print("");I have saw the how to use that command --debug in terminal.I print --debug command in the terminal from qt creator when running LibreCad.
But it doesn't work.I still can't show debug information.


  I just want to track debug info like these samples(the rs_debug->print("")info):

Setting active pen...
QC_MDIWindow::slotPenChanged() begin
QC_MDIWindow::slotPenChanged() end
QC_ApplicationWindow::slotPenChanged() end


  Did I wrong in something?
  I suppose that I have made mistakes in some steps.Which one?
  Did I wrong in build? Should I use terminal command to build the LC pro or I missed something else?
  And by the way,http://librecad.org this web seems crashed...on 11/22-23
  Here is my bulid:


Thanks for help.

Reply | Threaded
Open this post in threaded view
|

Re: How to show debug file?

ravas
Change line 52 in main.cpp to
RS_DEBUG->setLevel(RS_Debug::D_DEBUGGING);

The output will appear in Qt Creator
under 'Application Output'

However, if you are trying to debug with Qt Creator, this is not the way.

Change 'Release' to 'Debug' in the bottom left of Qt Creator.
Then run the program using the green triangle with the bug on it.
It will point to the problem if LibreCAD crashes.
Reply | Threaded
Open this post in threaded view
|

Re: How to show debug file?

jackfser
ravas wrote
Change line 52 in main.cpp to
RS_DEBUG->setLevel(RS_Debug::D_DEBUGGING);

The output will appear in Qt Creator
under 'Application Output'

However, if you are trying to debug with Qt Creator, this is not the way.

Change 'Release' to 'Debug' in the bottom left of Qt Creator.
Then run the program using the green triangle with the bug on it.
It will point to the problem if LibreCAD crashes.
Wow,Appreciated for you help!
I changed code and setting as you said,then debug info output successfully appear in terminal!