Discussion:
looking at contents of a std::string in OW debugger
(too old to reply)
Lynn McGuire
2018-08-22 19:24:31 UTC
Permalink
How do you look at the contents of a std::string in OW debugger ?

Specifically, the string itself rather than just the first character.

Thanks,
Lynn
Paul S Person
2018-08-23 16:47:19 UTC
Permalink
On Wed, 22 Aug 2018 14:24:31 -0500, Lynn McGuire
Post by Lynn McGuire
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 begin to envy Petronius."
"I have envied him long since."
Lynn McGuire
2018-08-24 01:27:50 UTC
Permalink
Post by Paul S Person
On Wed, 22 Aug 2018 14:24:31 -0500, Lynn McGuire
Post by Lynn McGuire
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.

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.

Lynn
Paul S Person
2018-08-24 17:16:15 UTC
Permalink
On Thu, 23 Aug 2018 20:27:50 -0500, Lynn McGuire
Post by Lynn McGuire
Post by Paul S Person
On Wed, 22 Aug 2018 14:24:31 -0500, Lynn McGuire
Post by Lynn McGuire
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.
Post by Lynn McGuire
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.
--
"I begin to envy Petronius."
"I have envied him long since."
Lynn McGuire
2018-11-16 19:25:38 UTC
Permalink
Post by Paul S Person
On Thu, 23 Aug 2018 20:27:50 -0500, Lynn McGuire
Post by Lynn McGuire
Post by Paul S Person
On Wed, 22 Aug 2018 14:24:31 -0500, Lynn McGuire
Post by Lynn McGuire
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.
Post by Lynn McGuire
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
Paul S Person
2018-11-17 18:34:19 UTC
Permalink
On Fri, 16 Nov 2018 13:25:38 -0600, Lynn McGuire
Post by Lynn McGuire
Post by Paul S Person
On Thu, 23 Aug 2018 20:27:50 -0500, Lynn McGuire
Post by Lynn McGuire
Post by Paul S Person
On Wed, 22 Aug 2018 14:24:31 -0500, Lynn McGuire
Post by Lynn McGuire
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.
Post by Lynn McGuire
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.
The server was attacked.
Then it was moved.
And it is still being tested.
So activity has dropped.

You could try Jiri's version (2.0).
But I imagine it has the same problem.
Or it's support group.
They may know of a solution.
--
"I begin to envy Petronius."
"I have envied him long since."
Loading...