Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
Dubugging - Watching a String
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Dubugging - Watching a String (Read 4423 times)
VJgamer
Guest
Dubugging - Watching a String
«
on:
June 16, 2007, 05:32:33 pm »
I have a string (string dirHome), but I cannot watch it in the debugger. I get the following message:
dirHome = Cannot resolve method string::c_str to any overloaded instance
Thank you for your time.
Logged
VJgamer
Guest
Re: Dubugging - Watching a String
«
Reply #1 on:
June 19, 2007, 04:24:59 am »
Does nobody know what this mean. I am sorry but I am new to C++. I have been using VB, VB.NET, and C#.
Alot of people seem to dislike .NET (I am a Windows programmer.)
Logged
TDragon
Lives here!
Posts: 943
Re: Dubugging - Watching a String
«
Reply #2 on:
June 19, 2007, 05:39:55 am »
What version of Code::Blocks are you using?
What compiler are you using?
Which debugger are you using?
Is the string object in question a std::string (from the Standard C++ Library)? If not, does it have a member function c_str() returning char*?
Logged
https://jmeubank.github.io/tdm-gcc/
- TDM-GCC compiler suite for Windows (
GCC 9.2.0
2020-03-08, 32/64-bit, no extra DLLs)
byo
Plugin developer
Lives here!
Posts: 836
Re: Dubugging - Watching a String
«
Reply #3 on:
June 19, 2007, 08:39:36 am »
It looks like wxString::c_str() has been optimized (to inline?) and is not available inside gdb (starting from wx2.
.
wxString-fetching script probably needs updating.
Regards
BYO
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
Dubugging - Watching a String