When debugging my C++ program using the glm::vec3 class with gdb, the vector classes are quite cumbersome to work with:  

[![screenshot of the debugger within qtcreator](https://i.stack.imgur.com/85R0c.png)](https://i.stack.imgur.com/85R0c.png)

I've read in the [manual](http://doc.qt.io/qtcreator/creator-debugging-helpers.html), that it's possible to write debug helpers.  

I've managed to get qtcreator to load the file (the debugger exits immediately with an error, if my python file has a syntax error).

How can I write a minimalistic debugging helper?

### What I've already tried:

Here's the C++ code

```
#include <glm/glm.hpp>

class Foo
{
};

int main(int, char**)
{
  glm::vec3 vec3(42, 64, 256);
  Foo foo;

  (void)vec3;
  (void)foo;

  return 0;
}

```

This is my debugging helper:

```
from dumper import *

def qdump__glm__vec3(d, value):
    d.put("Yay, vec3 works :)")

def qdump__Foo(d, value):
    d.put("Yay, Foo works :)")

```

The vec3 code seems not to have any visible effect. For foo, it seems to do something, but instead of printing `Yay, Foo works :)` , qtcreator just shows `<not accessible>`. See the following screenshot:

[![my progress so far](https://i.stack.imgur.com/CLuNW.png)](https://i.stack.imgur.com/CLuNW.png)