PHPStorm remote debug like Eclipse PDT
Hi I'm evaluating to migrate from Eclipse PDT to PHPStorm 7.1.3 and I have this unresolved doubt.
First of all, this is my setup:
- My development box is an Ubuntu Server 12.04 with apache, php 5.4 and XDebug, its IP is 10.0.0.77. Here is where my projects reside and where XDebug is actually installed.
- My Desktop has IP 10.0.0.2.
In Eclipse PDT I can configure my remote debug server in the server config page, and create a new debug configuration that associates the project with that debug server. After that, I can simply run that debug configuration from Eclipse PDT, and my browser opens and I can happly debug all my project.
After reading some blog posts, I can't figure it out how to achieve this very same behaiviour with PHPStorm, without using external browser plugins at all.
So the question is this ¿It's possible to achieve the same debug functionality with PHPStorm without using any external tools?
Thanks in advise!
请先登录再写评论。
Hi there,
Well .. with zero-config approach you can use bookmarklets instead of browser extension. Both just setting up xdebug cookie that act as a signal for xdebug to debug this request.
But yes -- you can initiate debugging like you have described from within IDE as well -- just create and use Run/Debug Configuration of "PHP Remote Debug" or "PHP Web Application" types -- it will add similar xdebug marker via GET parameter. The downside of such approach is that it will debug requested URL only (as GET parameter is not carried to next page as cookie would naturally do)
Misc llinks:
Thanks Andriy Bazanov.
Another question that comes to my mind is this.
It's possible with PHPStorm to have my remote server (10.0.0.77) project files in sync with a local copy (becasue loading siles directly from the server from my samba share is too slow) to PHPStorm load faster?
The concrete question is ¿Can I have a local copy of a samba shared project that is continuously in sync and can be debugged from remote server?
Thanks!
The whole IDEA platform requires very fast access to source files (i.e. all files *must* be local -- accessing via network share is only "partially" supported -- works just fine for some and not (lags, random short freezes out of nowhere) for others).
The idea of workflow of how you *should* work:
http://confluence.jetbrains.com/display/PhpStorm/Deployments+in+PhpStorm
Well, just forget about it, I managed to create a remote project on mounted samba share. Realized that i needed to create a depl
oyment server (partially created on project wizard), and after that, changed the PHPStorm debug port to my own and voila, it works.
After that, just setted up the project synchro options and thats all.
Than ks for the help!