macosx-debug.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sun, 01 Oct 2017 20:50:44 +0300
changeset 2197 5ee52f8d25b5
parent 1912 8b81a8f0f692
child 2228 837f1337c59b
permissions -rw-r--r--
Changing Vagrant home directory.

.. -*- coding: utf-8; -*-

========================
 Debugging in Mac OS X.
========================
.. contents::
   :local:

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.