Skip to main content



      Home
Home » Language IDEs » PHP Development Tools (PDT) » debuging from mozilla with zend eclipse plugin
debuging from mozilla with zend eclipse plugin [message #14094] Mon, 16 April 2007 15:32 Go to next message
Eclipse UserFriend
Originally posted by: info.ilo4u.com

I succeeded in debuging directly from mozilla with zend eclipse plugin but I
still have a problem with debug_session_id parameter in the CGI query string
(this is very usefull, because you can have values of your GET and POST in
your debugging context).

The query string added parameters I use is to call eclipse debugger from
mozilla are :

debug_port=10000&debug_new_session=1&start_debug=1&a mp;debug_no_cache=1176747827421&debug_host=192.168.0.1%2 C127.0.0.1&debug_session_id=1007&send_sess_end=1

The problem is that the debug_session_id parameter is depending on eclipse
session.
In other words it happens that they change.
And when it changes the debuging is not working any more...

I found a way to find out its value.
You just have to debug from eclipse a simple php file when you add
phpinfo(); command.
then you do a Ctrl F to find "QUERY_STRING" and you copy the
debug_session_id.

It's a bit anoying because, I'll have to setup the value each time I work !

Questions :
1 ) Is there a way to avoid being dependant on debug_session_id ?
2) is there a Mozilla Plugin like the one for the zend Ide 5 (this plugin do
all these work for you). This would be most usefull.
Re: debuging from mozilla with zend eclipse plugin [message #15613 is a reply to message #14094] Thu, 19 April 2007 05:39 Go to previous message
Eclipse UserFriend
Originally posted by: dominic.clifton.gr-tech.net

> The problem is that the debug_session_id parameter is depending on

> eclipse session.

> It's a bit anoying because, I'll have to setup the value each time I work
> !

>

> Questions :

> 1 ) Is there a way to avoid being dependant on debug_session_id ?

There should be.

Phpeclipse with phpdbg manages it just fine. What happens is that each time
you start a new debug session within phpeclipse phpdbg listens on a
different port (10001 for the first one, 10002 for the second debug session,
etc) and you just update the query string, but at least it always starts
from 10001 so it's much easier to guess right the first time.

A phpdbg query string section looks like this &DBGSESSID=1@clienthost:10001

I agree that it would be great if there was a much shorter query string to
establish a debug session, perhaps something that can be used on development
boxes only like ?xdebug=start which can be used to bypass all the normal
querystring checks and just connect back to the machine that made the http
request.

Anyway I'm kinda guessing and waffling a bit here now, but it sure would be
handy to have a query string you can remember that doesn't change each time.

Dom
Previous Topic:Autocomplete type hinting
Next Topic:Kubuntu and newest eclipse PDT folding problem
Goto Forum:
  


Current Time: Mon Jul 14 12:59:42 EDT 2025

Powered by FUDForum. Page generated in 0.06558 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top