title: How do you debug python code with kubernetes and skaffold?
body: <p>I am currently running a django app under python3 through kubernetes by going through <code>skaffold dev</code>. I have hot reload working with the Python source code. Is it currently possible to do interactive debugging with python on kubernetes?</p>
  
  <p>For example,</p>
  
  <pre><code>def index(request):
      import pdb; pdb.set_trace()
      return render(request, 'index.html', {})
  </code></pre>
  
  <p>Usually, outside a container, hitting the endpoint will drop me in the <code>(pdb)</code> shell. </p>
  
  <p>In the current setup, I have set <code>stdin</code> and <code>tty</code> to <code>true</code> in the <code>Deployment</code> file. The code does stop at the breakpoint but it doesn't give me access to the <code>(pdb)</code> shell.</p>