title: Unable to display frame variables (PyCharm remote debugger)
body: <p><strong>What's the problem?</strong></p>
  
  <p>I set up in PyCharm (version 2016.1.4) remote-debugging using the remote interpreter (not Debug Server!) as described here: <a href="https://www.jetbrains.com/help/pycharm/2016.1/remote-debugging.html#5" rel="nofollow noreferrer">jetbrains website</a>.</p>
  
  <p>When I run in Debug mode the program stops at the break point as it should. But, in the Variables window the variables are not displayed. Instead I get the following Error: </p>
  
  <blockquote>
    <p>Unable to display frame variables</p>
  </blockquote>
  
  <p>I guess this is the same problem: <a href="https://stackoverflow.com/questions/39239981/pycharm-remote-debugging-unable-to-retrieve-variables">link</a></p>
  
  <p><strong>What did I try?</strong></p>
  
  <p>I found this <a href="https://blog.jetbrains.com/pycharm/2012/08/gevent-debug-support/" rel="nofollow noreferrer">link</a> with a possible solution, but it doesn't work for me. Based on this solution, I modified my <code>helpers/pydev/_pydevd_bundle/pydevd_constants.py</code> file as follows:</p>
  
  <p>From:</p>
  
  <pre><code>try:
      SUPPORT_GEVENT = os.getenv('GEVENT_SUPPORT', 'False') == 'True'
  except:
      # Jython 2.1 doesn't accept that construct
      SUPPORT_GEVENT = False
  
  # At the moment gevent supports Python &gt;= 2.6 and Python &gt;= 3.3
  USE_LIB_COPY = SUPPORT_GEVENT and \
                 ((not IS_PY3K and sys.version_info[1] &gt;= 6) or
                  (IS_PY3K and sys.version_info[1] &gt;= 3))
  </code></pre>
  
  <p>To:</p>
  
  <pre><code>try:
      SUPPORT_GEVENT = os.getenv('GEVENT_SUPPORT', 'False') == 'True'
      try:
          import gevent
          SUPPORT_GEVENT = True
      except:
          SUPPORT_GEVENT = False
  except:
      # Jython 2.1 doesn't accept that construct
      SUPPORT_GEVENT = False
  
  # At the moment gevent supports Python &gt;= 2.6 and Python &gt;= 3.3
  USE_LIB_COPY = SUPPORT_GEVENT and \
                 ((not IS_PY3K and sys.version_info[1] &gt;= 6) or
                  (IS_PY3K and sys.version_info[1] &gt;= 3))
  </code></pre>
  
  <p>but it still doesn't work. I still cannot see the variables.</p>
  
  <p>Anybody any idea how to fix it?</p>