This Question is Not Answered

1 "correct" answer available (4 pts) 1 "helpful" answer available (2 pts)
11 Replies Last post: Mar 8, 2013 11:43 PM by fremme  
fremme Newbie 7 posts since
Mar 8, 2013
Currently Being Moderated

Mar 8, 2013 4:48 PM

Debugging

Hello everyone!

 

As a long time user of PhpED, I'm now using PhpStorm - and find it to be a super product

 

But - after 6 months - I'm still not able to have the debugger up and running - and of that reason - I'm still using the php debugger in phpED.
But running two frameworks like this is silly.


Here is the setting:

 

Working from windows 7 – and using cvs (ssh) module in PhpStorm to access source code on the remote server.
The server is a linux server – running apache.

 

Development etc – using the cvs is working perfect.

 

But – to be able to debug – sett breakpoints etc – I have the PhpED – using WebDrive (also using ssh) – keeping a “local” folder for PhpEd to work from.

 

I was able to see the PhpStorm debugger in action – when I test run the PhpStorm – using the same WebDrive folder – and a ssh tunnel from the server to my pc.

 

BTW: I have a script running on the server – getting all “new” code from cvs and deploy into the debug server automatically for me!

 

So after committing via cvs module in PhpStorm - the server sees the new code and auto deploys to the test web server.

 

But – I would like to use only the cvs (via ssh) –and not WebDrive – and be able to use the debugger functionality in PhpStorm ?

 

Is this possible??

 

 

I also needs to be able to start debugger from php using something similar to PhpEd’s  : “DebugBreak('1@localhost');”

 

 

Next - 80% of my work is now javascript (extjs) - and still not been able to se the debugger in PhpStorm in action for my Javascript code

 

 

There I'm using the debugger in FF and Illuminations.

 

 

Thank you for your help.

Andriy Bazanov Master 2,635 posts since
May 28, 2010
Currently Being Moderated
Mar 8, 2013 8:09 PM in response to: fremme
Re: Debugging

What do you mean "do not have direct access" exactly?

 

You need to have local copy of files in order to use debugger.

Andriy Bazanov Master 2,635 posts since
May 28, 2010
Currently Being Moderated
Mar 8, 2013 8:49 PM in response to: fremme
Re: Debugging

You are using CVS, so you DO have local copy of files, right (otherwise, what do you edit then)?

 

If yes -- then why do you need MappedDrive one ??

Andriy Bazanov Master 2,635 posts since
May 28, 2010
Currently Being Moderated
Mar 8, 2013 11:09 PM in response to: fremme
Re: Debugging

Did I mentioned anywhere about runing them? I assume you do not know how remote debugging works (in general, not PHP only).

 

Original file is required so the IDE can show you what line is currently debugged; so it can "navigate" to next line; "jump over" function call;  so you can control where to put breakpoints etc etc. Everything gets executed on the server; nothing runs locally in case of remote debug.

Andriy Bazanov Master 2,635 posts since
May 28, 2010
Currently Being Moderated
Mar 8, 2013 10:13 PM in response to: fremme
Re: Debugging

In any case: some good articles / documentation can be found here and in blog. In particular:

 

If you have problems with settings this up -- you will need to provide some more information, like: that remote server -- is it on LAN or on Internet; is debugger engine (xdebug/zend debugger) properly configured on server etc etc.

Andriy Bazanov Master 2,635 posts since
May 28, 2010
Currently Being Moderated
Mar 8, 2013 11:38 PM in response to: fremme
Re: Debugging

Cannot comment much on this -- never debugged on busy/production server this way + never worked via ssh/xdebug proxy -- always on test server and always directly.

 

Therefore: the only real idea that I have right now -- make sure that xdebug.remote_autostart = 0, otherwise xdebug will try to debug every single request. You may also try to get rid of xdebug.idekey -- should work without it (it should be passed via cookie from browser extension)

More Like This

  • Retrieving data ...