File: README

package info (click to toggle)
termdebug 2.2+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 456 kB
  • ctags: 685
  • sloc: ansic: 5,008; sh: 560; makefile: 48; lex: 46
file content (71 lines) | stat: -rw-r--r-- 2,759 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Introduction
============

Termdebug is a set of utilities to record and replay the input and output of a
terminal program. Its main goal is to aid in developing and debugging terminal
programs. Other programs such as termrec/termplay, nethack-recorder/player and
script/scriptreplay only record the output. However, when debugging an
interactive terminal program, the input is often more important than the
output.

Motivation
==========

When developing an interactive terminal program, bugs can be very hard to track
down, as a specific sequence of actions may have triggered the bug. Usually one
stumbles upon a bug when doing undirected testing, and it is unclear which
sequence of actions triggered it. Moreover, it is often hard, if not
impossible, to recreate such a sequence from memory.

Termdebug allows you to record the input and output of your testing sessions
such that if you stumble upon a bug, you have a record of what you did. This
record can then be replayed to the program to recreate the exact circumstances
that triggered the bug.

A second use of termdebug is testsuites for interactive terminal programs. The
tdreplay program can verify that the output of the program is the same as the
recorded output. By building a set of testcases with known output you can
verify that changes to the program don't affect the output behaviour of the
program, or only those parts of the behaviour that you intended.

Utilities
=========

tdrecord           Starts a program and records its input and output.
tdreplay           Starts a program and replays the input of a recording.
tdview             Shows the output of a recording.
tdrerecord         Starts a program and replays the input of a recording,
					  recording the input and output to create a new recording.
tdcompare          Compares two recordings.

Prerequisites and Installation
==============================

Termdebug can provide optional (but recommended) functionality. This requires
at least ncurses, to add a visual comparison mode.

If further iconv, libunistring, Cairo and Pango are installed, pictures can be
generated of the visual differences. Finally, if pthread is available, tdreplay
will also include the option to generate a sequence of pictures showing the
progression of the terminal output.

To compile and install termdebug:

$ ./configure
or
$ ./configure --prefix=/usr
(see ./configure --help for more tuning options)
$ make all
$ make install

Reporting Bugs
==============

If you think you have found a bug, please check that you are using the latest
version of termdebug [http://os.ghalkes.nl/termdebug.html]. When reporting bugs,
please include a minimal example that demonstrates the problem.

Author
======

Gertjan Halkes <termdebug@ghalkes.nl>