<h1 tal:replace="structure here/manage_page_header" />
<h2 tal:replace="structure here/manage_tabs" />

<h3>Could not connect to Wing</h3>

<div>
  The debugger has started but could not connect back to Wing.  Possible 
  reasons for failing to connect are:

  <div>
  <ul>

    <li><strong>Wing is already debugging or not listening for a debug 
        connection on port <span tal:replace="here/ide_port">port</span> of
        <span tal:replace="here/ide_host">host</span>.</strong>

        <p>Make sure Wing is showing "No debug process / listening for 
        connections on TCP/IP port <span tal:replace="here/ide_port">port</span>"
        in the status bar bug button's tooltip and you
        have enabled Zope support from the Extensions tab of Project Properties
        in Wing.</p>
    </li>

    <li><strong>Wing is not allowing debug connections from this 
        host.</strong>

        <p>Make sure this host is listed in Wing preference Allowed 
        Hosts (in Debugger External/Remote preferences group). If you are
        debugging between hosts, make sure your file location map is
        configured correctly.  See <a href="manage_document"
          tal:attributes="href string:${here/absolute_url}/manage_document"
          >Documentation</a></p>
    </li>

    <li>
      <strong tal:condition="python:here.pw_mode in (0, 1)">
          <tal:line condition="here/wingDebugPwIsValid">Invalid 
          <code>wingdebugpw</code> file in the 
            <span tal:replace="python:test(here.pw_mode, here.pw_dir, 
              here.getProfileDir())">dir</span>
            directory.</tal:line>
          <tal:line condition="not:here/wingDebugPwIsValid">Missing 
            <code>wingdebugpw</code>file.</tal:line>
      </strong>
      <strong tal:condition="python:here.pw_mode == 2">Data scrambling and 
        connection password settings do not match those used by the 
        IDE</strong>
        
      <p>When present, the <code>wingdebugpw</code> file must match the file 
      in the User Settings Directory for the user running Wing.</p>
    </li>

    <li><strong>Wing is not version 
        <span tal:define="version python:here.version.split('b', 1)[0]"
              tal:replace="version">version</span></strong>

        <p>You must run matching versions of Wing and the Zope debugger 
        module.</p>
    </li>
        
  </ul>
  </div>
  
  <form action="manage_main" 
      tal:attributes="action string:${here/absolute_url}/manage_main">
    <input type="submit" value="Return to status screen" />
  </form>
        
<hr />
For usage details, see 
<a href="manage_document" 
   tal:attributes="href string:${here/absolute_url}/manage_document">Documentation</a>.
<h1 tal:replace="structure here/manage_page_footer" />
