trans::foreign: Add some more debugging