Re: [Libreoffice] How to write debug output to console or file?

2010-10-29 Thread Cedric Bosdonnat
Hi Mattias, On Fri, 2010-10-29 at 15:49 +1100, Mattias Johnsson wrote: To help with debugging, it'd be very useful for me to be able to write out variable values from within the code. Writing to the console or a file would be fine. Writing to the console using fprintf of std:: is possible. I

Re: [Libreoffice] How to write debug output to console or file?

2010-10-29 Thread Caolán McNamara
On Fri, 2010-10-29 at 09:52 +0200, Cedric Bosdonnat wrote: The problem here is to get a C string from them: here are some examples: * from OUString: rtl::OUStringToOString( sOUStr, RTL_TEXTENCODING_UTF8 ).getStr() * from String / UniString ByteString( sToolStr,

Re: [Libreoffice] How to write debug output to console or file?

2010-10-29 Thread Michael Meeks
On Fri, 2010-10-29 at 11:59 +0100, Caolán McNamara wrote: On Fri, 2010-10-29 at 09:52 +0200, Cedric Bosdonnat wrote: The problem here is to get a C string from them: here are some examples: * from OUString: rtl::OUStringToOString( sOUStr, RTL_TEXTENCODING_UTF8 ).getStr()

Re: [Libreoffice] How to write debug output to console or file?

2010-10-29 Thread Jan Holesovsky
Hi Michael, Michael Meeks píše v Pá 29. 10. 2010 v 12:14 +0100: The problem here is to get a C string from them: here are some examples: * from OUString: rtl::OUStringToOString( sOUStr, RTL_TEXTENCODING_UTF8 ).getStr() Much as I hate the over-use of operator