cmm-21 / a2

Assignment 2 - Kinematic walking controller
5 stars 0 forks source link

Debugging matrices #27

Closed lthiet closed 3 years ago

lthiet commented 3 years ago

Hi,

Does anyone know how to use the debugger in VS code to see the insides of Eigen Matrices?

This is what I have when debugging : image

the m_data only displays the first value so it is not very useful.

If anyone knows how to display the full matrix in VS code that would be very nice! Thanks

eastskykang commented 3 years ago

Unfortunately, debugger does not work very well for eigen matrix. The most easiest solution is printing the matrix with std::cout << matrix << std::endl.

(If someone has a better solution, please let me know!)