MSVS 2003, 2005 debugger issues

This is a discussion on MSVS 2003, 2005 debugger issues within the A Brief History of Cprogramming.com forums, part of the Community Boards category; What about the contents of a map or list? This would be quite handy. ...although I'd try it at home ...

  1. #16
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,598
    What about the contents of a map or list? This would be quite handy.

    ...although I'd try it at home to get a feel for it first since it is not terribly straightforward and you don't want to waste too much time in the office trying to get it to work right.
    Ideally plugging it in and having it work as is would be nice. I'm quite convinced by now that's not possible with anything in computers but it would be nice.
    Last edited by VirtualAce; 01-15-2009 at 03:11 PM.

  2. #17
    Registered User
    Join Date
    Jan 2005
    Posts
    7,344
    >> take the address of the vector and paste it into the memory viewer
    Or manually update the autoexp.dat to have it show what you want. I did this with an old string implementation and it helped a lot.

    >> Ideally plugging it in and having it work as is would be nice.
    I would hope that there would be people who have done this that could make their changes available for others, but I haven't tried it in years so I wouldn't know. Whatever changes you test at home could probably be carried over to your work machine immediately (assuming they're the same version).

    BTW, to my recollection my best success with this was in VC 6.0. I believe I tried it with 2003 but don't remember much about it.

    P.S. http://msdn.microsoft.com/en-us/libr...38(VS.80).aspx

  3. #18
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,033
    Quote Originally Posted by CornedBee View Post
    What do you mean? If you have a vector v, then "v !" will give you the standard object view of the vector, which means that you can look at its members.
    If you want to get more low-level than this, take the address of the vector and paste it into the memory viewer.
    I see. Didn't see that one.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #19
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,598
    I tried this in VS2005 and it works great. Had some trouble with a map but dynamic arrays, STL lists, vectors, queues, dequeues, and stacks work like a charm. I guess it wouldn't hurt to read the help files for the compiler once in awhile. Thanks for the information because it's a lifesaver.

    Tried this in 2003 and it did not work. So guess I'm out of luck at work unless I use the file recommended in this thread.

  5. #20
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,598
    Found this on gamedev. To look into an STL container in VS2003 just append .Myfirst,<x> in the watch window where x is the number of items to display from the container.

    So for a vector named myVector it would look like this in the watch window:

    myVector._Myfirst,10

    This would display the first 10 objects in the vector myVector.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Annoying compilers
    By anon in forum A Brief History of Cprogramming.com
    Replies: 42
    Last Post: 12-14-2008, 04:30 AM
  2. stdin in Visual Studio 2005 vs. 2003
    By Trev614 in forum C Programming
    Replies: 5
    Last Post: 06-23-2008, 03:44 PM
  3. Just-In-Time Debugger (Visual Studio 2005)
    By Darklighter in forum Tech Board
    Replies: 2
    Last Post: 10-10-2006, 02:43 PM
  4. New patch for MSVS 2005 standard
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 07-14-2006, 12:58 PM
  5. FILES in WinAPI
    By Garfield in forum Windows Programming
    Replies: 46
    Last Post: 10-02-2003, 07:51 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21