This is the debugging output for OutputDebug,flan
Code: Select all
<stream type="stderr">ZmxhbgA=</stream>
Code: Select all
<stream type="stderr">RXJyb3IgaW4gI2luY2x1ZGUgZmlsZSAiRDpcQUhLIFN0dWRpbyBHaXRcUHJvamVjdHNcVW50aXRsZWRcVW50aXRsZWQzXGZsYW4uYWhrIjoKICAgICBBIGNvbnRyb2wncyB2YXJpYWJsZSBtdXN0IGJlIGdsb2JhbCBvciBzdGF0aWMuCgpTcGVjaWZpY2FsbHk6IHZmbGFuCgoJTGluZSMKCTAwNDogZmxhbigpICAKCTAwMTogewotLS0+CTAwMjogR3VpLEFkZCxCdXR0b24sdmZsYW4KCTAwNDogfQoJMDA3OiBFeGl0CgkwMDg6IEV4aXQKCTAwODogRXhpdAoKVGhlIGN1cnJlbnQgdGhyZWFkIHdpbGwgZXhpdC4A</stream>
Code: Select all
<stream type="stderr" line="2">
Thanks in advance
edit:
I did some digging in the source:
Code: Select all
int Debugger::WriteStreamPacket(LPCTSTR aText, LPCSTR aType)
{
ASSERT(!mResponseBuf.mFailed);
mResponseBuf.WriteF("<stream type=\"%s\">", aType);
CStringUTF8FromTChar packet(aText);
mResponseBuf.WriteEncodeBase64(packet, packet.GetLength() + 1); // Includes the null-terminator.
mResponseBuf.Write("</stream>");
return SendResponse();
}
Debugger::FileAppendStdOut(LPCTSTR aText) use it. Even adding a message="1" or something like that to the stream as an attribute
would be helpful but adding a line="(lineno)" would make my life a whole lot easier.