Reputation: 5456
In Visual Studio, I can start the debugger and am able to debug any page I want. Say I launch index.aspx, I can step through the code. Then I click on a button that navigates to page1.aspx, I can step through the code whenever a breakpoint is hit.
I am trying to find a similar tool for php. I tried using xDebug and Zend on Eclipse, but I could do is debug one file at a time. Even though I chose Debug As -> PHP Web Page, I can debug only the page I chose. Then if I navigate to other pages, the debugger won't stop at my breakpoints.
Am I missing something here? Is there an IDE that supports this feature for php websites?
Upvotes: 0
Views: 432
Reputation: 14909
NetBeans 6.8 do it, if I'm not wrong. I don't remember if you can start the debug from a page different than the index page but, afterward it follows the page changes (I'm sure of this).
Edit: I've checked: Netbeans 6.8 (I think it works with the 6.9 version too) + xdebug2 => it works like a charm.
Upvotes: 0
Reputation: 363
In Eclipse PDT you have to begin debugging on your index page, then don't close your debugging session and replace the eclipse browser url with the url of the page you need to debug.
You can also access to the page you need to debug by clicking links from your first page.
It works for me with Zend debugger.
Upvotes: 1
Reputation: 8459
If you're used to Visual Studio, you have the VS.php plugin which was already good, 1 year ago when I saw someone use it.
Upvotes: 0