If you travel back to the Travis web UI and look at the current job log, you will see the following:
Now you simply go to a Command Prompt or Terminal session and enter the ssh command to start an interactive debug session with the current build:
The debug mode SSH session will only stay alive for 30 minutes and then you will need to make another API call to start another debug session: