Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7746793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:22:14+00:00 2026-06-01T10:22:14+00:00

I use vim + xdebug to debug php. If the debug operation waste a

  • 0

I use vim + xdebug to debug php. If the debug operation waste a long time, vim will lost the connection with xdebug, and I have to restart the debug by press F5 and do it from the first step again. So how can I set a longer time for the debug procedure?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T10:22:16+00:00Added an answer on June 1, 2026 at 10:22 am

    The 5 second timeout is hard-coded in debugger.py. You can increase it by modifying the following line:

      def accept(self):
        print 'waiting for a new connection on port '+str(self.port)+' for 5 seconds...'
        serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        try:
          serv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
          serv.bind(('', self.port))
    
          # Set a higher timeout here...
          serv.listen(5)
          (self.sock, address) = serv.accept()
        except socket.timeout:
          serv.close()
          self.stop()
          print 'timeout'
          return
    

    In my plugin version, that happens to be line 556 of debugger.py. If your differs, just search in Vim for 5 or second.

    Update:

    Also found it at line 666

      def __init__(self, port = 9000, max_children = '32', max_data = '1024', max_depth = '1', minibufexpl = '0', debug = 0):
        """ initialize Debugger """
    
        # Probably need to increase here too...
        socket.setdefaulttimeout(5)
        self.port       = port
        self.debug      = debug
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use VIM editor for PHP, i know many people will point to PDT
I started playing with Haskell and I use Vim. I have autoindent on in
I use vim. Specifically I am using Janus . I have expandtab set. However,
I use Vim's spell checking to validate texts in Russian. We have letter ё
I use vim. I have a requirement to use 80 or fewer columns. This
I use vim for coding. When I have to compile the current file, Currently
I use VIM with different types of files, so each time I need to
I use vim (7.1) on OpenVMS V7.3-2. I connect to VMS trough a telnet
I use Vim and Vim plugins for Visual Studio when writing C++. Often, I
I use Vim & Git together. I tend to merge/switch Git branches alot. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.