Programmers do that a lot? I always just start trying stuff in the command line until it works. It's in research though, so maybe different from what is typical developer stuff?
"Fuck it, let's try [blank]" is absolutely a valid debugging mechanism. Whether you get the same problems or fascinating new problems - you learned something about what's wrong.
Now go take a walk and let your brain figure out what it means.