linux-debug.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Wed, 26 Aug 2020 13:05:52 +0300
changeset 2430 315b44793009
parent 2228 837f1337c59b
permissions -rw-r--r--
Module defaults.
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; -*-
1201
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
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
 Debugging under Linux.
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
========================
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     6
.. contents::
1905
fba288d59662 Include only local subsections into TOC. This prevent duplication of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1691
diff changeset
     7
   :local:
1201
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
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    12
http://www.ltrace.org/
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    13
  home page
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    14
https://sourceforge.net/projects/ltrace/
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    15
  SourceForge home page
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    16
http://en.wikipedia.org/wiki/Ltrace
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    17
  Wikipedia page.
1201
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
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    27
http://en.wikipedia.org/wiki/Strace
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    28
  Wikipedia home page.
1201
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
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    39
http://en.wikipedia.org/wiki/SystemTap
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    40
  Wikipedia home page.
1201
b369997b60a2 Debugging under Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    41