Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

viewing dynamic arrays in VS debugger?

Name: Anonymous 2006-10-28 21:46

Is there a way to view dynamically-allocated arrays in Visual Studio 2003's debugger?  It's only showing the very first element because it doesn't "know" it's a dynamic array:

// class Foobar has elements int a, int b, and int c
Foobar* poop = new Foobar[50];

... (Poop[i].a, .b, and .c get modified etc...)

Breakpoint here --> and I want to view the whole poop array in the debugger, not just the first element.  Is there a way to get the debugger to do this?  If not, are there any other debuggers out there that can?

Name: Anonymous 2006-10-28 21:49

Write code without bugs.

Name: Anonymous 2006-10-28 22:27

It should let you, so your code must suck.  You could always take address stored in the pointer and look at the memory directly, I guess.

Name: Anonymous 2006-10-29 1:00

>>2


only a noob would think there's such thing as bugless code

gb2/compsci 101

Name: Anonymous 2006-10-29 1:17

>>4
murk loar

Name: Anonymous 2006-10-29 17:05

>>1
use std::vector, noob.

>>4
only noobs write bad code, noob.

Name: Anonymous 2006-11-02 11:39

>>1

I've had that problem too, and I have no idea why. Did you find a solution?

Name: Anonymous 2006-11-02 12:50

>>4
Lurk mathematically provable code more.

Name: Anonymous 2006-11-03 13:44

OCaml for teh win!

Name: Anonymous 2006-11-03 14:23

>>7

No, but I found and fixed the problem I was having.

Name: Anonymous 2009-08-17 0:17

Lain.

Name: Anonymous 2009-10-18 17:32

TV
Y 7
FV

Name: Anonymous 2009-10-18 17:32

TV
Y 7
FV

Name: Anonymous 2009-10-18 17:33

TV
Y 7
FV

Name: Anonymous 2009-10-18 17:34



TV
Y7
FV

Name: Anonymous 2009-10-18 17:35


TV
Y7
FV

Name: Anonymous 2009-10-23 15:30

>>12-16
Way to sage a five year old thread, jerkface.

Name: Anonymous 2011-12-08 22:36

ABC

Name: Anonymous 2011-12-08 22:37

KNUTH

Name: Anonymous 2011-12-08 22:38

KNUTH

Name: Anonymous 2011-12-08 22:38

KNUTH

Name: Sgt.Kabu륉kimanꛂ莙 2012-05-28 20:39

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List