Thread: MSVS 2003, 2005 debugger issues

  1. #16
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    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,366
    >> 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
    Location
    Inside my computer
    Posts
    24,654
    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
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    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
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    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.

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, 02:44 PM
  3. Just-In-Time Debugger (Visual Studio 2005)
    By Darklighter in forum Tech Board
    Replies: 2
    Last Post: 10-10-2006, 01: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, 11:58 AM
  5. FILES in WinAPI
    By Garfield in forum Windows Programming
    Replies: 46
    Last Post: 10-02-2003, 06:51 PM