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

  • Home
  • SEARCH
  • 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 6032217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:18:05+00:00 2026-05-23T05:18:05+00:00

I’m learning a large code base at the moment, which involves code deployed across

  • 0

I’m learning a large code base at the moment, which involves code deployed across several (about 9) physical servers. Due to the overall architecture, I can’t roll code up onto one machine with many virtualhosts.

I would find it really useful to be able to launch one debug session in my IDE (either NetBeans or Eclipse), and hit breakpoints when code executes on any of my group of servers. This can happen either by browsing accross servers, or RPC/HTTP calls within server code.

To achieve this, I think I need some kind of dbgp proxy, which will forward debug data between multiple servers (the standard dbgp proxy methods I’ve found in searches go the other way – multiple users on single server).

Is there an existing way of doing this? Have I missed something obvious (or subtle) that would mean I need more than dbgp proxying?


I’m aware of Debugging 2 servers with php's Xdebug at the same time, however the solution there is completely inappropriate here… running 8 VMs (or getting 8 client machines) isn’t a viable option


As a sub question, if I end up rolling my own open-sourced solution, do people care what language I use? Java seems good for IDE integration, C/C++ probably has fewer dependency issues for any non-java-IDE users (maybe vim/xdebug)

  • 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-05-23T05:18:05+00:00Added an answer on May 23, 2026 at 5:18 am

    At the time I asked the question, I misunderstood how the protocol works, and a proxy isn’t strictly necessary.

    XDebug (and the DBGP protocol) initiates a connection from a server back to a client, based on a configured IP address, or (recently, but not recommended) the client IP.

    This behaviour is enabled in one of 2 ways:

    • Appending ?XDEBUG_SESSION_START=<something> to a URL
    • Setting the cookie “XDEBUG_SESSION” to <something>

    Although it is possible to have a HTTP proxy between the browser and client that inserts one of these (or a browser plugin to do it), a neater solution for me was to use mod_rewrite on a server.

    RewriteEngine On
    
    RewriteCond %{HTTP_COOKIE} !XDEBUG_SESSION   [NC]
    RewriteRule ^(.*)$ $1?XDEBUG_SESSION_START=mod_rewrite [QSA,L]
    

    As mod_rewrite normally operates on a per-virtualhost basis, this needs enabling on each virtualhost.

    The session name doesn’t seem to be significant with NetBeans, (other IDEs may vary), but it may be worth changing my value of mod_rewrite to whatever your IDE generates. This is unlikely to work if a DBGP proxy is in use, as there’s no easy way to tie IDE session information into the rewrite rule.

    That said, the big advantage of using mod_rewrite instead of intercepting requests with a proxy is that this allows debugging of both sides of an RPC call (although whether a single debugger likes multiple concurrent connections is another issue).

    It would still be nice to have a DBGP proxy that manages streams from separate servers by adding the servername into the thread field in init packets, but as I have yet to use a debugger that supports multiple threads/servers for PHP, it’s a moot point.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have a text area in my form which accepts all possible characters from
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but

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.