RE: Using fprintf or DBUG_PRINT to print messages in mysqld

AugustQ <[email protected]>
Newsgroups gmane.comp.db.mysql.devel
Message-ID <1315239287.3816.6.camel@AMD4>
Hi Salil,

I've used 

    fprintf(stderr, .....)

and this worked, at least the message appeared in the log-file.

And I've also used Eclipse (with CDT) to set breakpoints, inspect
variables etc. And I could see my messages in the console.

Here is an example:
I looked ath this statement:
    select PZN, EVP, HAP from ABDAcol where PZN IN (1, 2, 3, 456);

and this is what I found in the console:
FUNC-ITEM=[ IN ] args: 5  res=2 type=[IN_FUNC]
FIELD-ITEM[ABDAcol] [PZN] [] 0 	name=<PZN>
INT-ITEM	val = 1 res=2	name=<1>
INT-ITEM	val = 2 res=2	name=<2>
INT-ITEM	val = 3 res=2	name=<3>
INT-ITEM	val = 456 res=2	name=<456>

This text was written by my own fprintf()-statements.

hope that helps.
August



-- 
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe:    http://lists.mysql.com/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.