News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Watching large buffers

Started by O-san, December 04, 2010, 03:58:59 PM

Previous topic - Next topic

O-san

I am having difficulties on how to watch a large buffer of characters. Until now I have used the watch window and also tried the Examine memory window. The watch window can only display 200 entries then it stops. The examine memory window can only display 256 bytes which is also too small. Is there a way to watch large amounts of text from a variable that I have missed?

oBFusCATed

Can you try the debuggers branch nightly?
Also if the debuggers branch nightly has the same problems, can you provide a test project, so we can reproduce them?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

O-san

Thanks for the reply. I will try it but I am unable to do so right now. I am currently running a nightly build svn 5911. Is it really necessary to provide a test project for this problem? I mean.. I am having the same issue in all my projects. How would I go about watching a buffer such as this one:  char *buffer=0;
  buffer = new char[10000];
  for(int i=0;i<2000;i+=2){
    buffer[i]='a';
    buffer[i+1]='\n';
  }



oBFusCATed

Your example works correctly with my version of debuggers branch CB...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

O-san

What method did you use to view the buffer?

oBFusCATed

I've dropped it in the watches window with drag'n'drop I think :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

O-san

heh okay and you got it to display how, as an array 0-199? or 0-2000/10000?

oBFusCATed

It was displayed as simple string  'buffer | "adsadsd......asdsd"'
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]