List:General Discussion« Previous MessageNext Message »
From:Miguel Angel Solorzano Date:February 5 2004 2:33pm
Subject:RE: Debugging MySql Source in Visual C++
View as plain text  
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

Thread
Debugging MySql Source in Visual C++Ananth Raghuraman5 Feb
Re: Debugging MySql Source in Visual C++Miguel Angel Solorzano5 Feb
RE: Debugging MySql Source in Visual C++Ananth Raghuraman5 Feb
  • Result returned by "show index from"...Karam Chand5 Feb
    • Re: Result returned by "show index from"...vpendleton5 Feb
      • Re: Result returned by "show index from"...Karam Chand5 Feb
      • How MySQL is handling unicode...some questions?Karam Chand6 Feb
  • RE: Debugging MySql Source in Visual C++Miguel Angel Solorzano5 Feb
RE: Debugging MySql Source in Visual C++Ananth Raghuraman6 Feb
RE: Debugging MySql Source in Visual C++Ananth Raghuraman19 Feb