Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > openwatcom.users.c_cpp > #3559

Re: looking at contents of a std::string in OW debugger

From Lynn McGuire <lynnmcguire5@gmail.com>
Newsgroups openwatcom.users.c_cpp
Subject Re: looking at contents of a std::string in OW debugger
Date 2018-11-16 13:25 -0600
Organization OpenWatcom
Message-ID <psn5ip$rdq$1@www.openwatcom.org> (permalink)
References <plkd61$ta$1@www.openwatcom.org> <53ptnddr9c6ns3hqbsrdnum1sv9o1tr0vp@4ax.com> <plnmr6$9aa$1@www.openwatcom.org> <1ee0odll6k6liteom7oahjmig1k9tburbn@4ax.com>

Show all headers | View raw


On 8/24/2018 12:16 PM, Paul S Person wrote:
> On Thu, 23 Aug 2018 20:27:50 -0500, Lynn McGuire
> <lynnmcguire5@gmail.com> wrote:
> 
>> On 8/23/2018 11:47 AM, Paul S Person wrote:
>>> On Wed, 22 Aug 2018 14:24:31 -0500, Lynn McGuire
>>> <lynnmcguire5@gmail.com> wrote:
>>>
>>>> How do you look at the contents of a std::string in OW debugger ?
>>>>
>>>> Specifically, the string itself rather than just the first character.
>>>
>>> It's been a long time since I debugged C++.
>>>
>>> However, if you can see the first character, are you, by any chance,
>>> looking at an ASCII string (a char * of some sort)?
>>>
>>> If so, then right-clicking on what I presume is a data member,
>>> selecting "Type", and selecting "String" might work. It does in C.
>>
>> I wish, the String type is greyed out.
> 
> The Debugger Guide lists a bunch of Type options I never see since
> they are for C++; but it is not clear which are available when.
> 
> So, then, how does Show perform?
> 
> In C, it allows you to see the memory. This is not ideal; it uses the
> usual hex display, with the characters shown on the right; but it can
> be useful at times.
> 
>> I write all of my new code in either F77 or C++, depending on the
>> situation.  C just does not get it for me anymore.
> 
> I wish I could find an older project of mine that uses <string>, but,
> for some reason, I can't. It's been too long, I guess. I can't even
> remember which data member you might be looking at!
> 
> Frank Beythian initiated wgml and he did it in C, so I am working in C
> now. I think this was a good idea, for it really doesn't need C++
> (well, Classes would be very nice in a few places), and using C avoids
> endless arguments over whether or not it is truly object-oriented
> which using C++ has been known to invite.

Wow, this is a major failure of the OW debugger.

I guess that OW is sun-setting.  Sad.

Lynn

Back to openwatcom.users.c_cpp | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

looking at contents of a std::string in OW debugger Lynn McGuire <lynnmcguire5@gmail.com> - 2018-08-22 14:24 -0500
  Re: looking at contents of a std::string in OW debugger Paul S Person <psperson1@ix.netcom.invalid> - 2018-08-23 09:47 -0700
    Re: looking at contents of a std::string in OW debugger Lynn McGuire <lynnmcguire5@gmail.com> - 2018-08-23 20:27 -0500
      Re: looking at contents of a std::string in OW debugger Paul S Person <psperson1@ix.netcom.invalid> - 2018-08-24 10:16 -0700
        Re: looking at contents of a std::string in OW debugger Lynn McGuire <lynnmcguire5@gmail.com> - 2018-11-16 13:25 -0600
          Re: looking at contents of a std::string in OW debugger Paul S Person <psperson1@ix.netcom.invalid> - 2018-11-17 10:34 -0800

csiph-web