diff --git a/src/path-optimization/spline-gradient-based.cc b/src/path-optimization/spline-gradient-based.cc
index afb685a4eb475476e90416c546f4cc01bf104c5b..288e959db696b2398dce76b5395784498323c099 100644
--- a/src/path-optimization/spline-gradient-based.cc
+++ b/src/path-optimization/spline-gradient-based.cc
@@ -181,6 +181,8 @@ namespace hpp {
         value_type guessThreshold = this->problem().getParameter ("SplineGradientBased/guessThreshold", value_type(-1));
         Eigen::RowBlockIndices select =
           this->computeActiveParameters (path, set->configProjector()->solver(), guessThreshold, true);
+        hppDout (info, "End of path " << idxSpline << ": do not change this dof " << select);
+        hppDout (info, "End of path " << idxSpline << ": state " << state->name());
 
         const size_type rDof = this->robot_->numberDof(),
                         col  = idxSpline * Spline::NbCoeffs * rDof,