Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread Display Modes
Old Jun 10, 2011, 06:55 AM   #1
macrumors newbie
Join Date: May 2011
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.

ychaturvedi is offline   0 Reply With Quote
Old Jun 10, 2011, 08:45 PM   #2
macrumors 65816
Join Date: Dec 2010
Location: Sydney
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.
jiminaus is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
entire window moves when attempting to click and drag element in window HELP chlc MacBook Pro 0 Feb 10, 2014 04:08 PM
Minimise window, focus next window Forkjulle Mac Applications and Mac App Store 4 Jan 31, 2013 08:00 AM
Would love icons on finder window to incrementally bump window width 1611mac OS X 10.8 Mountain Lion 0 Jan 30, 2013 01:41 PM
Window flickers in Safari when resizing window Pegbiter OS X 0 Jun 13, 2012 08:14 AM

Forum Jump

All times are GMT -5. The time now is 05:43 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013,, LLC