graphical-debugging-vscode icon indicating copy to clipboard operation
graphical-debugging-vscode copied to clipboard

Can't get User-Defined types to work

Open maxmarsc opened this issue 2 years ago • 0 comments

Hi,

First of all thanks a lot for the work you put into this extension. It's really helpful !

I've been trying to add support for Eigen::TensorFixedSize class (amongst other ones). Here is a screenshot of a variable I'm trying to draw : Screenshot from 2023-10-09 13-15-36

To catch this type I added this entry in a graphicaldebugging.json file :

{
  "name": "graphicaldebugging",
  "language": "cpp",
  "types": [
    {
      "type": "Eigen::TensorFixedSize<.+>",
      "kind": "container",
      "array": {
        "start": "$this.m_storage.m_data",
        "size": "$this.m_storage.Size"
      }
    }
  ]
}

I deduced the start and size field values from the debugger panel : Screenshot from 2023-10-09 13-18-01

Yet the type remains unknown.

PS : is there a way to enable a debug console log for the extension ? This would be helpful to identify what I'm missing

maxmarsc avatar Oct 09 '23 11:10 maxmarsc