User forums > Using Code::Blocks

how to watch matrix members inside class

(1/1)

darkwalk:
Hi:  I have a problem watching a matrix inside a class object.  For example:

class asdf{
  protected:
      int** a;
  public:
      asdf();
}

asdf:asdf(){
   //instantiate new 2D matrix
}

main(){
   asdf my_asdf;
}

When I watch my_asdf during debugging, all it gives me is this:

[-] my_asdf
          a = 0xXXXXXX

I would like to see the actual matrix pointed to by a, not the memory location.  Is there a way to do so?  I searched for a while, but cannot find anything...  Thanks for your help!

Navigation

[0] Message Index

Go to full version