DBMonitor and console application

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
cyrilo
Posts: 18
Joined: Wed 11 Oct 2006 08:47

DBMonitor and console application

Post by cyrilo » Mon 28 Jul 2008 18:03

Is it possible to use DBMonitor for SQL-debugging MyDAC-based Delphi console applications?

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Thu 31 Jul 2008 11:31

Yes, you can use DBMonitor for console applications in the same way as for the Windows applications.

cyrilo
Posts: 18
Joined: Wed 11 Oct 2006 08:47

Post by cyrilo » Mon 06 Oct 2008 18:41

Can you show an example of code please?

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Tue 07 Oct 2008 12:34

Just add the MyDacMonitor and MySQLMonitor units in uses clause and create a MySQLMonitor object like this:
MySQLMonitor := TMySQLMonitor.Create(nil);

Run DBMonitor for SQL-debugging.

Post Reply