List:Internals« Previous MessageNext Message »
From:Guilhem Bichot Date:June 18 2008 4:44pm
Subject:Re: Internal instrumentation using 'DBUG'
View as plain text  
Hi,

On Wed, Jun 18, 2008 at 06:34:44PM +0530, Amit k. Saha wrote:
> Hello,
> 
> I am trying to obtain the line nos. of the code traced in my DBUG
> trace. I believe I have to use the 'F' flag while starting the server
> in the debug mode.
> 
> I have tried:
> 
> amit@ubuntu804-laptop:~/work-space/mysql/mysql_install/libexec$
> ./mysqld --debug=F
> 
> But, it doesn't work.

No, but you are not far from it :)
F is source file's name; L is line number.
But both control only *how* DBUG output is printed (what decorations),
they do not control *when* DBUG output is printed; that is controlled
with "d" (print when meeting a DBUG_PRINT statement), "t" (print
when meeting DBUG_ENTER/DBUG_RETURN), etc.
Try --debug=d:t:F for example.
I bet you have found the manual, but in case, it's in dbug/user.*
files in the MySQL source tree (user.ps for example).

-- 
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Mr. Guilhem Bichot <guilhem@stripped>
 / /|_/ / // /\ \/ /_/ / /__   MySQL France, Lead Software Engineer
/_/  /_/\_, /___/\___\_\___/   Bordeaux, France
       <___/   www.mysql.com   
Thread
Internal instrumentation using 'DBUG'Amit k. Saha18 Jun
  • Re: Internal instrumentation using 'DBUG'Guilhem Bichot18 Jun
    • Re: Internal instrumentation using 'DBUG'Amit k. Saha19 Jun
  • Re: Internal instrumentation using 'DBUG'Sergei Golubchik18 Jun
    • Re: Internal instrumentation using 'DBUG'Amit k. Saha19 Jun