Developer Tools and Tips

rurban edited this page Dec 16, 2014 · 4 revisions


To run all tests under valgrind use make test VALGRIND=valgrind, i.e. using memcheck. For helgrind or another tool you need to create a helper script and pass this to the VALGRIND setting.

valgrind --tool=helgrind $@

See the helper tools/dev/vgp, tools/dev/vgp_darwin and tools/dev/vgp_old to test single scripts.

There is a Valgrind suppression file at tools/dev/parrot.supp for running Parrot under Valgrind.

Operating System Specific Advice


General tips for debugging on OS X:

Use parrot_old, which links to libparrot.a statically. So gdb will resolve all symbols properly.