how to recompile cv_bridge w/o optimization
Hi All,
For some particular reason, I need to step into /opt/ros/electric/stacks/vision_opencv/cv_bridge/src/cv_bridge.cpp
for debugging purpose, and I want to examine the value of int source_type
in the function of toCvCopy
. However, when I print source_type
in gdb, it says "value optimized out". So how can I re-compile & build cv_bridge without optimization, so I can examine the value of source_type
?
Thanks