0

I am using:

  • WAMP
  • PHP 5.3
  • XDebug
  • NetBeans

I want to debug and have the debug port in Netbeans set as 9000 (after following various tutorials, including this one --> Xdebug And Netbeans Problem ). The problem is, I'm unsure as to the purpose of the port 9000.

Does debug port 9000 mean that I must run Wamp on port 9000?

Community
  • 1
  • 1
rockstardev
  • 13,479
  • 39
  • 164
  • 296

1 Answers1

2

You don't run Wamp on port 9000: it's NetBeans that runs on port 9000!

Your debug client (NetBeans, in this case) needs to listen for incoming connections so Xdebug is able to establish a connection and send the apporpriate info. Please note that there're two requests involved:

  1. Someone (possibly NetBeans) connects to the web server to request the HTML document and start a debug session.
  2. Xdebug connects to whoever requested the debug session (NetBeans) and sends some XML with variables and other debug info.

Details can vary depending on your settings but this is the general idea.

The port you choose is irrelevant as far as:

  • It's available (no other app is using it) at this moment.
  • It's reachable from the web server (no firewall / router issues).
John Carter
  • 53,924
  • 26
  • 111
  • 144
Álvaro González
  • 142,137
  • 41
  • 261
  • 360