About Store Forum Documentation Contact



Post Reply 
Debugging Memb
Author Message
fatcoder Offline
Member

Post: #1
Debugging Memb
Hi, I'm wondering if anyone knows how to inspect the elements of a Memb container after hitting a break point? Take a look at the screen shot below.

The Memb container called currentPath has 13 elements in it. But there doesn't seem to be anyway to inspect those elements when stepping through the code in the debugger. I've even tried setting a watch on the first element, but that just gives me an error as you can see.

I know I could write some code to dumb the elements out to an array of pointers that I could then inspect, but this is just a hassle when you need to do this a dozen times a day.

Anyone have any ideas on how I can inspect them in the debugger? Esenthel, can you tell us how you do it while working on the engine? Surely you have needed to do this many times.


Attached File(s) Image(s)
   
05-08-2010 03:53 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Debugging Memb
actually I didn't need this smile

in most of my codes I have

REPA(memb)
{
Element &elm=memb[i]; // after this line I can just inspect 'elm'
}
05-08-2010 09:40 AM
Find all posts by this user Quote this message in a reply
fatcoder Offline
Member

Post: #3
RE: Debugging Memb
Yes, that is what I have been doing as well. It is just a hassle to write that code every time you need to inspect a memory container, and then step through it to inspect each item one at a time.
05-09-2010 01:16 AM
Find all posts by this user Quote this message in a reply
Post Reply