Comments (12)
Nevermind :-) I will still keep this ticket open because the returning None
is not what should happen.
For the matrix/vector you use in the screenshot you should probably use a statically sized type because its way faster for small matrices. This is because many optimizations are only possible, when the size is known at compile time.
from lldb-eigen-data-formatter.
No that should work. What type of matrix did you print?
from lldb-eigen-data-formatter.
Any of the eigen stuff.... for example:
#include "Eigen/Dense"
using Eigen::MatrixXd;
P_ = MatrixXd(5, 5);
P_ << 1, 0, 0, 0, 0,
0, 1, 0, 0, 0,
0, 0, 1, 0, 0,
0, 0, 0, 1, 0,
0, 0, 0, 0, 1;
From the lldb prompt in CLion I enter print P_
and it just responds with "None".
Appreciate your help. Thx.
from lldb-eigen-data-formatter.
I should also add that I installed as per the readme and can see the .lldinit file, etc.
from lldb-eigen-data-formatter.
Indeed the installation of the plugin worked. Therefore you only see None instead of the default output from lldb, because some exception occurs in the plugin. Usually the plugin should fallback to the lldbs default printer in that case, which for whatever reason does not work. I have to check this on an OS X machine the upcoming days, because on my linux machine everything works as expected.
from lldb-eigen-data-formatter.
Ok so the problem here is that the matrices you are trying to debug are of dynamic size, which this plugin does not support right now. There is however a pull request implementing this: #2 which works, but has some problems.
Since I have a new plugin in development that supports not only viewing, but also editing I'm not going to fix this, but feel free to just switch to the branch of the pull request.
from lldb-eigen-data-formatter.
Thankyou for that info. I saw the pull request but as I'm a newbie to eigen I didn't even know I was using dynamic matrices all the time. ;-) Looking forward to the update and will test the pull request. Really appreciate your help.
from lldb-eigen-data-formatter.
Excellent. By keeping this open I'll be alerted to updates ;-)
Off-topic but do you notice CLion gives heaps of compiler syntax warnings on Eigen code as well?
from lldb-eigen-data-formatter.
Update... Tried pull request 2 it it fails everywhere... Will stick to cout for now. ;-)
from lldb-eigen-data-formatter.
I would love to use this plugin but I'm having the same issue (I need to use dynamic sizes). Thanks for this useful tool.
from lldb-eigen-data-formatter.
This bug might be partially fixed. Please have a look at https://github.com/fantaosha/LLDB-Eigen-Data-Formatter
from lldb-eigen-data-formatter.
I've added support for dynamically sized matrices today (see 7a07dc1). Feel free to give it a try.
from lldb-eigen-data-formatter.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lldb-eigen-data-formatter.