List:Internals« Previous MessageNext Message »
From:Amit k. Saha Date:June 19 2008 4:39am
Subject:Re: Internal instrumentation using 'DBUG'
View as plain text  
On Wed, Jun 18, 2008 at 8:14 PM, Guilhem Bichot <guilhem@stripped> wrote:
> 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.

It was just a case of thinking something , and posting something else.
I actually meant the "filename" but posted the "line no.".

> 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.

Hmm.. works fine. Now i have a better idea about how to go about working with it

> 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).

Yes, but for some reason- "user.ps" complains of being corrupt-- so I
tried reading the "user.t" file where again I had to "dig" for what I
wanted. So I found a easier way out- post it here! :-)

Thanks a lot!

--Amit
-- 
Amit Kumar Saha
http://blogs.sun.com/amitsaha/
http://amitksaha.blogspot.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