Reproducing the Travis Build in Debug Mode

I’ve seen some build errors in my Make build for a Go project. To better understand the problem, I wanted to see an output file that is produced by the tests.

I’ve started a Debug Build and SSH’d on to the box. I’m now having trouble running the build as it would run automatically. I’ve tried a sequence of travis_run_* steps, but I’m still not able to get the build to run as it normally would.

Is there an easy/easier way to do this?

Could you elaborate on this? What have you tried? What did you expect to happen, and what actually did?