title: How to detect that Python code is being executed through the debugger?
body: <p>Is there a simple way to detect, within Python code, that this code is being executed through the Python debugger?</p>
  <p>I have a small Python application that uses Java code (thanks to JPype). When I'm debugging the Python part, I'd like the embedded JVM to be passed debug options too.</p>