For example
KURL::KURL(ParsedURLStringTag, const String& url)
{
parse(url);
ASSERT(url == m_string);
}
I want to check the url passed in. But in watch window, it shows
url {m_impl={...}}
m_impl {m_ptr=0x00000002}
m_ptr 0x00000002 {m_refCount=0x00000000 m_length=0x00000000 ...}
m_refCount 0x00000000
m_length 0x00000000
m_data8 0x00000000<Bad Ptr>
m_data16 0x00000000<Bad Ptr>
m_buffer 0x00000000{void*}
m_substringbuffer 0x00000000{m_refCount=??? m_length=??? m_data8???}
m_copyData16 0x00000000<Bad Ptr>
m_hasAndFlags 0x00000000
Why?
I'm using visual studio 2005, configurations is RelWithDebInfo.
You can use the printf to check the log information.
From: talking1239+caf_=talking1239=126...@gmail.com [mailto:talking1239+caf_=talking1239=126...@gmail.com] On Behalf Of Dong
Sent: 2012年12月5日 17:24
To: wince...@googlegroups.com
Subject: [wincewebkit] How to watch the WTF::String in visual studio?
For example
KURL::KURL(ParsedURLStringTag, const String& url)
{
parse(url);
ASSERT(url == m_string);
}
I want to check the url passed in. But in watch window, it shows
url {m_impl={...}}
m_impl {m_ptr=0x00000002}
m_ptr 0x00000002 {m_refCount=0x00000000 m_length=0x00000000 ...}
m_refCount 0x00000000
m_length 0x00000000
m_data8 0x00000000<Bad Ptr>
m_data16 0x00000000<Bad Ptr>
m_buffer 0x00000000{void*}
m_substringbuffer 0x00000000{m_refCount=??? m_length=??? m_data8???}
m_copyData16 0x00000000<Bad Ptr>
m_hasAndFlags 0x00000000
Why?
I'm using visual studio 2005, configurations is RelWithDebInfo.
Thanks!
--
You received this message because you are subscribed to the Google Groups "Windows CE WebKit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/wincewebkit/-/DBGjl8U0OJ8J.
To post to this group, send email to wince...@googlegroups.com.
To unsubscribe from this group, send email to wincewebkit...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wincewebkit?hl=en.
I haven’t tried this yet myself but have bookmarked this:
Note that WTF::String used to live in the WebCore namespace, so you’ll have to tweak that.
Mark