[haiku-development] Re: Debugging help

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 24 Apr 2017 08:47:54 -0400

On Mon, Apr 24, 2017 at 2:57 AM, Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> wrote:

If the debugger doesn't help you much there are some other possibilities:
1) Try to use the test app_server environment. IIRC it currently even
builds. This allows you to debug and develop the app_server as a normal
userland application in a window.
2) If nothing works, debug_printf() is your friend :-)

Those two approaches are probably the safest bets for now anyways.
Debugging the running app_server using the debugger on the same
machine is asking for trouble, as the debugged thread could
conceivably acquire a lock/resource that's necessary for redraw or
input handling, which would lead to no longer being able to control
said debugger instance. That was one of the reasons remote support was
being worked on, I just haven't had the time to finish it yet.

Regards,

Rene

Other related posts: