title: How to avoid deleting cached files after build in Bazel
body: <p>I have a <code>genrule</code> in Bazel that is supposed to manipulate some files. I think I'm not accessing these files by the correct path, so I want to look at the directory structure that Bazel is creating so I can debug.</p>
  
  <p>I added some <code>echo</code> statements to my genrule and I can see that Bazel is working in the directory <code>/home/lyft/.cache/bazel/_bazel_lyft/8de0a1069de8d166c668173ca21c04ae/sandbox/linux-sandbox/1/execroot/</code>. However, after Bazel finishes running, this directory is gone, so I can't look at the directory structure.</p>
  
  <p>How can I prevent Bazel from deleting its temporary files so that I can debug what's happening?</p>