At 02:13 5/2/2004, Ananth Raghuraman wrote:
Hi,
>Thanks for the info!
>I am already able to debug the server startup.
>I would like it to stop
>at someother point, perhaps a point where a SELECT statement is executed
>for example..
In this case you can start your debug server (mysqld.exe) with
the parameters --console --standalone --debug. The last option
will create a file called mysqld.trace in the C:\ root directory,
then using the mysql client execute the statement you want to
debug. Shutdown the server and open the above file and you should
see e.g.:
T@4 : >dispatch_command
T@4 : | query: select * from user
T@4 : | >mysql_parse
T@4 : | | >mysql_init_query
now opening your VC++ stuff do a search for "mysql_parse",
open the file and analyze where you can put a break point.
Regards,
For technical support contracts, visit https://order.mysql.com/
Are you MySQL certified?, http://www.mysql.com/certification/
Miguel Angel Solórzano <miguel@stripped>
São Paulo - Brazil