Registered Member
|
I seem to have successfully wired the gdb printer for Eigen 3.2.5 to Qt Creator so that when I'm at a breakpoint, I get a nice container-like display of the contents of instances of Eigen::Matrix<...>. But it just doesn't work for instances of Eigen::Array<...>, though the python printer code clearly intends to handle Array. Does this work for other people?
|
Moderator
|
Maybe you could try the one from the devel branch (I see a very few differences, but who knows...) You can find it there: https://bitbucket.org/eigen/eigen/src/3 ... at=default
|
Registered Member
|
I now believe that I was mistaken about how Qt Creator is doing this. Before trying to drop in the version from the devel branch as ggael suggested, I figured I'd better unwire the old thing to make sure I know which version is actually being used. When I tried to do this, Eigen::Matrix continued to be pretty printed, to my surprise.
Poking about in the Qt Creator help, I learned that it uses a different API for "debugging helpers". The Qt Creator 3.3.2 (opensource) install includes such a printer for Eigen::Matrix but not Array in <QtCreatorRoot>/share/qtcreator/debugger/misctypes.py. It appears as though this is what I've been actually using all along. Sorry for the confusion. |
Moderator
|
Ah, thank you for reporting back to us. Good to know.
|
Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar