How do you debug C++ applications on Linux?

asked 2015-04-08 15:55:08 -0600

dtmoodie gravatar image

I split my time between Windows development and Linux development. I'd like to know what types of debugging solutions are out there that work well for viewing cv::Mat data. I've grown rather dependent on Image Watch and I'd like to have similar functionality in Linux.

I made this python script that can dump an image and display it with a cv::imshow window, which is quite nice but there are some issues with it that I'm trying to sort out. http://dtmoodie.blogspot.com/2015/02/...

It's hard for me to believe that with so much Linux development of OpenCV that there isn't already a well known solution similar to Image Watch.

edit retag flag offensive close merge delete

Comments

You made a good point. An Eclipse plugin would be nice, but I myself just use imshow's when developing/debugging.

boaz001 gravatar imageboaz001 ( 2015-04-09 02:40:21 -0600 )edit
1

a really nice tool to use for code analysis is the cppcheck. Moreover, there are plugins for the most of the known IDE's.

theodore gravatar imagetheodore ( 2015-04-09 09:17:13 -0600 )edit
2

If you are using version 3.0, maybe cvv module from opencv_contrib can help (usage tutorial).

To build it you will need to install Qt5 libraries and pass -DWITH_QT=ON option to cmake.

mshabunin gravatar imagemshabunin ( 2015-04-10 08:17:05 -0600 )edit

Thanks, these will both be very useful to me.

dtmoodie gravatar imagedtmoodie ( 2015-04-29 16:08:21 -0600 )edit