linux-debug.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 22 Feb 2016 13:02:27 +0200
changeset 1907 f4b078cbff20
parent 1905 fba288d59662
child 1912 8b81a8f0f692
permissions -rw-r--r--
TXT files no longer used.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1334
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1201
diff changeset
     1
.. -*- coding: utf-8; -*-
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1201
diff changeset
     2
.. include:: HEADER.rst
1201
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     4
========================
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
 Debugging under Linux.
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     6
========================
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     7
.. contents::
1905
fba288d59662 Include only local subsections into TOC. This prevent duplication of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1691
diff changeset
     8
   :local:
1201
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     9
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
ltrace.
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    11
=======
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    12
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    13
  http://www.ltrace.org/
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    14
                home page
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    15
  https://sourceforge.net/projects/ltrace/
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    16
                SourceForge home page
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    17
  http://en.wikipedia.org/wiki/Ltrace
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    18
                Wikipedia page.
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    19
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    20
strace.
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    21
=======
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    22
::
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    23
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    24
  $ strace -o $CMD.log -e trace=open,close $CMD
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    25
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    26
See:
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    27
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    28
  http://en.wikipedia.org/wiki/Strace
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    29
                Wikipedia home page.
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    30
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    31
lsof.
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    32
=====
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    33
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    34
htop.
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    35
=====
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    36
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    37
systemtap.
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    38
==========
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    39
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    40
  http://en.wikipedia.org/wiki/SystemTap
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    41
                Wikipedia home page.
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    42