linux-debug.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 22 Feb 2016 12:41:52 +0200
changeset 1903 901e7394849f
parent 1691 7eeecad00b74
child 1905 fba288d59662
permissions -rw-r--r--
Decrease intent to increase space usage on mobile.
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::
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     8
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     9
ltrace.
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
=======
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
  http://www.ltrace.org/
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    13
                home page
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    14
  https://sourceforge.net/projects/ltrace/
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    15
                SourceForge home page
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    16
  http://en.wikipedia.org/wiki/Ltrace
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    17
                Wikipedia page.
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    18
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    19
strace.
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    20
=======
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
  $ strace -o $CMD.log -e trace=open,close $CMD
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    24
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    25
See:
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    26
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    27
  http://en.wikipedia.org/wiki/Strace
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    28
                Wikipedia home page.
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    29
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    30
lsof.
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    31
=====
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
htop.
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    34
=====
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
systemtap.
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    37
==========
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
  http://en.wikipedia.org/wiki/SystemTap
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    40
                Wikipedia home page.
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    41