|Jun 10, 2011, 06:55 AM||#1|
how to see wxString vaule in watch window
I am working on Mac-10.6 and xcode as IDE and using wxWidgests , i am unable to see wxString under mouse point as i see integer value , this will show me string address and i am unable to see string lie on that address , i put this string varibale in watch window also but unable to its value, i have to use wxMessageBox to see string value that is not good for debugging.
Is there any trick to see wxString value under mouse position.
|Jun 10, 2011, 08:45 PM||#2|
No, XCode is not designed for wxWidgets. It doesn't know what a wxString is, so it just shows the pointer value.
EDIT: You could output the value to into the XCode 3 debugger console or XCode 4 debug area with something like this (assuming str is a wxString).
printf("%s:%d: str=%s\n", __PRETTY_FUNCTION__, __LINE__, (const char *)str.utf8_str());
Last edited by jiminaus; Jun 10, 2011 at 09:54 PM.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|How to convince my parents to let me buy a 17" MacBook Pro||Ulf1103||Buying Tips and Advice||58||Nov 27, 2013 11:45 AM|
|How to see other computers in mixed home network and their activity ?||mjoshi123||Mac OS X Server, Xserve, and Networking||1||Jun 14, 2011 06:48 AM|
|[HOW TO] DIY iPhone 4 Swivel Car Mount||QuarterSwede||iPhone Accessories||13||Mar 8, 2011 02:51 PM|
|Would you like to see this?||EdChambo||Mac Applications and Mac App Store||10||Jan 14, 2011 02:44 PM|
|How to see a Mac folder from windows 7 in bootcamp 3 ?||flamemark||OS X||0||May 19, 2010 11:22 PM|
All times are GMT -5. The time now is 08:16 AM.