Notes on debugging Plash

--log option to pola-run: this logs method calls received by the FsOp object. --log-file redirects this output to a file.

Setting the environment variable PLASH_LIBC_DEBUG=1 causes PlashGlibc to output some debugging information to stderr.

strace

strace on client process

strace and --log can be combined. The output has a tendency to overlap. Output from --log can occur in the middle of a line from strace. This could be fixed by adapting strace to use a common logging framework.

The logs produced by strace and --log are unwieldy. A tool for browsing and filtering logs would be very useful.

gdb

gdb on ServerProcess

gdb on client program to debug PlashGlibc

Automated tests

The automated tests (see TestingPlash) currently use the Python unittest framework. This framework makes it awkward to customise tests, output and collect debugging information, or run an interactive debugger when an error occurs. Consider changing the test framework.

DebuggingPlash (last edited 2007-10-16 12:38:51 by MarkSeaborn)