macosx-debug.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Fri, 13 Jul 2012 22:32:19 +0300
changeset 1334 9bf0d5a1f0cf
parent 1205 fb22a651203c
child 1346 a2fbf50a43f4
permissions -rw-r--r--
Include common header with quick links.

.. -*- coding: utf-8; -*-
.. include:: HEADER.rst

========================
 Debugging in Mac OS X.
========================

dtruss.
=======

  $ dtruss df -h     # run and examine the "df -h" command
  $ dtruss -p 1871   # examine PID 1871
  $ dtruss -n tar    # examine all processes called "tar"

dtrace.
=======
::

  $ man -k dtrace
  $ dapptrace

See:

  http://en.wikipedia.org/wiki/Dtrace
                Wikipedia home page.

ktrace.
=======

Log files generated by ``ktrace`` are viewable in human-readable form using
``kdump``.

Since Mac OS X 10.5 Leopard, ktrace has been replaced by dtrace.

  http://en.wikipedia.org/wiki/Ktrace
                Wikipedia home page.