PHP postback debugging request #1444

Closed
jtmurphy1k opened this Issue Oct 11, 2016 · 3 comments

Projects

None yet

2 participants

@jtmurphy1k

Codelite is an excellent interface for PHP web site development that would be even better if debugging could be continued from a web page postback.

@eranif
Owner
eranif commented Nov 9, 2016

Do you mean: writing something like this in the browser:

http://localhost/test.php?XDEBUG_SESSION_START=codeliteide

and CodeLite will start debugging?

@jtmurphy1k

Using the XDEBUG parameter in the browser url still does not toggle CodeLite to listen for the debug request. My browser (Iceweasel) passes the codeliteide cookie back to the server just fine. It appears that CodeLite only listens for the web server debug request when the hit request (F5) is initiated from within the CodeLite IDE. Once the initial page is debugged within the CodeLite IDE (works great) and the web page is returned to the browser, subsequent postbacks initiated from the browser will not toggle CodeLite into debugging because CodeLite is no longer listening for debug requests. I would like a way to toggle the CodeLite IDE into listening for web server debug requests other than the IDE F5 key or green play arrow. I believe MS Visual Studio solves this with a built-in IDE browser that is integrated with the IDE debugger.

@eranif
Owner
eranif commented Nov 9, 2016 edited

You answered my question.
I know it does not work in the version you have, I just committed this today (wanted to confirm that this is what you expected)

I added new button in the workspace view, when clicked, CodeLite will start listening for new connections from the debugger (initiated by the browser)
php-server-side-debugger

Calling the URL with the cookie XDEBUG_SESSION_START will be captured by CodeLite

@eranif eranif closed this Nov 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment