infrastructure: function to capture traceback with full-path filenames