# Revision history [back]

I assume you have something like:

double seconds = ros::Time.now().toSec();


Now you try to debug the value seconds? (Other: you can't debug into the functions now() or toSec() because the deb is - obviously correctly - build as release...; If you want to debug this you have to recompile it yourself from source in debug mode...)

Assuming you can't access the seconds value, it is because it is optimized out in your code (or your code is not even build with debug info). You can change this by setting the build type for catkin via command like like:

with debug info, with optimization:

catkin_make -DCMAKE_BUILD_TYPE=RelWithDebInfo


with debug info, without optimization:

catkin_make -DCMAKE_BUILD_TYPE=Debug