[haiku-development] Re: Help regarding Dynamic Menu in Tracker

  • From: Hrishi Hiraskar <hrishihiraskar@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 01 May 2018 08:22:18 +0000

Hie

I'm finding no luck with Debugger. Maybe I'm doing something wrong.

I first launched Debugger. Then Attached Tracker by clicking on Tracker and
selecting "Attach".
Then I selected the thread I wanted to see stdout of.
But the stdout window is empty.

Is there anything that should be done on Tracker side? I thought debug
symbols are only needed if we want to set breakpoints. Or is it required to
see stdout also?

Also, I looked into killing Tracker and restarting from command line.
`kill Tracker` to kill
and
`hey Tracker load "file(/)" ` to load a path.

But only thing I'm getting on console is

Reply BMessage(B_NO_REPLY)

What is the procedure to get stdout on cosole?

Thank you.

Regards
Hrishikesh

On Mon, Apr 30, 2018 at 3:22 PM Hrishi Hiraskar <hrishihiraskar@xxxxxxxxx>
wrote:

Thank you for your suggestions.

I'm traveling today, and it's kinda long journey.

I'll look into this tomorrow as soon as I reach.

Regards
Hrishi

On Mon, Apr 30, 2018 at 1:53 PM Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
wrote:

On Mon, Apr 30, 2018 at 09:48:14AM +0200, Stephan Aßmus wrote:
I assume you have long figured out how to quit Tracker and restart it
manually from the command line. You will then see all the printf() debug
output on that command line. You could add some printf()-debugging to
the
code path that the message is supposed to take. Also, you have the
option to
launch Tracker in the Haiku Debugger.

You can attach Debugger to the already running Tracker, and it will
capture the stdout/stderr. So there is no need to manually restart it in
Terminal in that case.

--
Adrien.


Other related posts: