SI-8382 Restore partest.debug

Use it to set debug mode (which for instance leaves object files
behind for inspection). (--debug is a synonym for the command
line tool.)