开发者

How to initiate a debug session from a random request in Eclipse PDT with XDebug?

开发者 https://www.devze.com 2022-12-17 18:55 出处:网络
I use the combination of Eclipse PDT and XDebug very successfully to develop and debug my applications. So thanks to their creators, and if you haven\'t tried this combination, I strongly suggest you

I use the combination of Eclipse PDT and XDebug very successfully to develop and debug my applications. So thanks to their creators, and if you haven't tried this combination, I strongly suggest you do.

The only thing bugging me is, that I couldn't find a way to start a debug session by requesting a random script right in my browser. I always have to start the session in Eclipse on one of my scripts and debug configurati开发者_JS百科ons.

I have minimized the pain by adding a "debug.php" to my project that contains only

<?php 
// you can debug any request now

but still I have to finish this script and then do the request to whatever I really want to debug.

Is there a way to create a debug configuration that is not bound to a specific script but just tells PDT to start listening for requests from XDebug?


Go to preferences panel and select php->debug->installed debuggers and click on xdebug then click on configure. There should be an option to allow incoming connections. Select that and you can launch remote debug sessions from firefox with the xdebug extension

0

精彩评论

暂无评论...
验证码 换一张
取 消