0

I want use xdebug to analyze a php script and break, as soon as a remote host sends an HTTP request for that particular page, to GDB running on the server. Config options for php.ini are:

    xdebug.remote_enable = On
    xdebug.remote_autostart = 1

Since the debugger isn't on a different machine, but I want to debug only when a remote request is sent, how can I do this without debugging through a web browser? Should I run GDB on port 9000 and send the value XDEBUG_SESSION_START = session_name in the request?

1 Answer 1

1

Xdebug can't speak directly to GDB. However, it comes with a small simple client that does remarkable similar things. I've just explained how you can use it at Setting Xdebug breakpoints solely in command line

However, I am a bit unclear what you are trying to do. Can you explain where all the things live and what your set-up is?

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.