Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Question about using the internal debugger
Question about using the internal debugger [message #71509] Thu, 22 May 2008 11:09 Go to next message
No real name is currently offline No real nameFriend
Messages: 53
Registered: July 2009
Member
I'm following along the Basic Tutorial for debugging a script using
PDT's internal debugger.

Where I'm asked to select the 'PHP Script' option in the Debug Dialog, a
message box pops up saying "No PHP executables locations are defined.
Define PHP executable location before continuing" and a Preferences
window pops up asking for PHP executables. The tutorial makes no
mention of this. I'm assuming PDT's internal debugger is built in to
this tool and requires no setup.

I could use a little help deciphering this part of the tutorial.

Thanks
R
Re: Question about using the internal debugger [message #71567 is a reply to message #71509] Thu, 22 May 2008 14:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: codeslave.ca.ibm.com

http://wiki.eclipse.org/PDT/FAQ#Does_PDT_include_a_debugger. 3F_Where_can_i_find_one.3F

Richard Geddes wrote:
> I'm following along the Basic Tutorial for debugging a script using
> PDT's internal debugger.
>
> Where I'm asked to select the 'PHP Script' option in the Debug Dialog, a
> message box pops up saying "No PHP executables locations are defined.
> Define PHP executable location before continuing" and a Preferences
> window pops up asking for PHP executables. The tutorial makes no
> mention of this. I'm assuming PDT's internal debugger is built in to
> this tool and requires no setup.
>
> I could use a little help deciphering this part of the tutorial.
>
> Thanks
> R

--
Nick Boldt :: Release Engineer, IBM Toronto Lab
Eclipse Modeling :: http://www.eclipse.org/modeling
http://wiki.eclipse.org/index.php/User:Nickb
Re: Question about using the internal debugger [message #71602 is a reply to message #71567] Thu, 22 May 2008 18:58 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 53
Registered: July 2009
Member
Thanks for the link to the wiki. I tried installing the Zend debugger
and the operation aborted with a message window: "Update operation has
failed
Error retrieving
"plugins/org.zend.php.debug.debugger.linux.x86_64_0.0.0.jar". [Server
returned HTTP response code: "404 Not Found" for URL:
http://downloads.zend.com/pdt/plugins/org.zend.php.debug.deb ugger.linux.x86_64_0.0.0.jar.]
Server returned HTTP response code: "404 Not Found" for URL:
http://downloads.zend.com/pdt/plugins/org.zend.php.debug.deb ugger.linux.x86_64_0.0.0.jar."

I loaded the URI http://downloads.zend.com/pdt/plugins/ into my browser
and saw that there is a file called
" org.zend.php.debug.debugger.linux.x86_64_5.2.10.v20070905.ja r " that
looks like it should work for me.

I downloaded the file into my plugins directory and restarted with
eclipse -clean. The plugin doesn't seem to load. I looked in the error
log for error messages.. none for zend. I looked in the plugin
configuration page for the zend plugin.. there is none.

Any ideas?
R


Nick Boldt wrote:
> http://wiki.eclipse.org/PDT/FAQ#Does_PDT_include_a_debugger. 3F_Where_can_i_find_one.3F
>
>
> Richard Geddes wrote:
>> I'm following along the Basic Tutorial for debugging a script using
>> PDT's internal debugger.
>>
>> Where I'm asked to select the 'PHP Script' option in the Debug Dialog,
>> a message box pops up saying "No PHP executables locations are
>> defined. Define PHP executable location before continuing" and a
>> Preferences window pops up asking for PHP executables. The tutorial
>> makes no mention of this. I'm assuming PDT's internal debugger is
>> built in to this tool and requires no setup.
>>
>> I could use a little help deciphering this part of the tutorial.
>>
>> Thanks
>> R
>
Re: Question about using the internal debugger [message #71621 is a reply to message #71602] Thu, 22 May 2008 20:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: codeslave.ca.ibm.com

A few questions to help diagnose this...

a) what version of PDT are you using?
b) what version of WTP?
c) what version of Eclipse?

Good combinations of the above are: 1.0.x, 2.0.x, 3.3.x. No idea if this
debugger works for PDT 1.1.x, WTP 3.0.x & Eclipse 3.4.x.

d) did you also install the matching feature jar? And by install, I mean
"unpack the jar so its contents appear in a subfolder in
eclipse/features/?" Did you also grab the other link-numbered plugin(s)?

http://downloads.zend.com/pdt/plugins/org.zend.php.debug.deb ugger_5.2.10.v20070905.jar
http://downloads.zend.com/pdt/plugins/org.zend.php.debug.deb ugger.linux.x86_64_5.2.10.v20070905.jar
http://downloads.zend.com/pdt/features/org.zend.php.debug_fe ature_5.2.10.v20070905.jar

Looks like you'll also have to download and unpack the debugger plugin
jar. Not sure about the linux fragment jar (the one you downloaded --
it's just a "fragment" which means it only contains OS-specific code,
but not the actual runtime stuff).

This downloading and unpacking stuff should all be done for you
automatically if you give the site.xml URL to Eclipse's Update Manager
(Eclipse 3.3 and earlier) or the new p2 Install Manager (in Eclipse 3.4).

http://downloads.zend.com/pdt/site.xml

Here's my blog entry on this subject:

http://divby0.blogspot.com/2007/08/pdt-php-debugging-w-zend. html

Good luck!

--
Nick Boldt :: Release Engineer, IBM Toronto Lab
Eclipse Modeling :: http://www.eclipse.org/modeling
http://wiki.eclipse.org/index.php/User:Nickb

Richard Geddes wrote:
> Thanks for the link to the wiki. I tried installing the Zend debugger
> and the operation aborted with a message window: "Update operation has
> failed
> Error retrieving
> "plugins/org.zend.php.debug.debugger.linux.x86_64_0.0.0.jar". [Server
> returned HTTP response code: "404 Not Found" for URL:
> http://downloads.zend.com/pdt/plugins/org.zend.php.debug.deb ugger.linux.x86_64_0.0.0.jar.]
>
> Server returned HTTP response code: "404 Not Found" for URL:
> http://downloads.zend.com/pdt/plugins/org.zend.php.debug.deb ugger.linux.x86_64_0.0.0.jar."
>
>
> I loaded the URI http://downloads.zend.com/pdt/plugins/ into my browser
> and saw that there is a file called
> " org.zend.php.debug.debugger.linux.x86_64_5.2.10.v20070905.ja r " that
> looks like it should work for me.
>
> I downloaded the file into my plugins directory and restarted with
> eclipse -clean. The plugin doesn't seem to load. I looked in the error
> log for error messages.. none for zend. I looked in the plugin
> configuration page for the zend plugin.. there is none.
>
> Any ideas?
> R
>
>
> Nick Boldt wrote:
>> http://wiki.eclipse.org/PDT/FAQ#Does_PDT_include_a_debugger. 3F_Where_can_i_find_one.3F
>>
>>
>> Richard Geddes wrote:
>>> I'm following along the Basic Tutorial for debugging a script using
>>> PDT's internal debugger.
>>>
>>> Where I'm asked to select the 'PHP Script' option in the Debug
>>> Dialog, a message box pops up saying "No PHP executables locations
>>> are defined. Define PHP executable location before continuing" and a
>>> Preferences window pops up asking for PHP executables. The tutorial
>>> makes no mention of this. I'm assuming PDT's internal debugger is
>>> built in to this tool and requires no setup.
>>>
>>> I could use a little help deciphering this part of the tutorial.
>>>
>>> Thanks
>>> R
>>
Re: Question about using the internal debugger [message #71638 is a reply to message #71621] Thu, 22 May 2008 23:09 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 53
Registered: July 2009
Member
a) PDT 1.0.2
b) WTP 1.1.10x
c) Eclipse 3.3.2

I got the info for WTP and PDT from the "plugin details" window... I
downloaded the standard Europa jee tarball from the Eclipse download
webpage, untarred it, and made a launcher on my desktop that points to
the eclipse executable.

d) I'm not certain about this one. When I installed PDT, there were 2
choices. I checked both choices, and did the "Select Required" thing
with all the choices expanded. I did this through the "Software
updates..." option, so no manual intervention.

the following folders are present: *php*

features/org.eclipse.php_feature_1.0.2.v20080102-79-7GE7QYGH NGPGY
features/org.eclipse.php_feature.source_1.0.2.v20080102-79-7 GE7QYGHNGPGY
features/org.eclipse.php.sdk_feature_1.0.2.v20080102-2-384D2 _RHATdIRZIZaq8RZHIOHQ

plugins/org.eclipse.php_feature.source_1.0.2.v20080102-79-7G E7QYGHNGPGY


the following jars are in the plugin folder: *php*
plugins/org.eclipse.php_1.0.2.v20080102.jar
plugins/org.eclipse.php.help_1.0.2.v20080102.jar
plugins/org.eclipse.php.core_1.0.2.v20080102.jar
plugins/org.eclipse.php.server.core_1.0.2.v20080102.jar
plugins/org.eclipse.php.debug.core_1.0.2.v20080102.jar
plugins/org.eclipse.php.server.ui_1.0.2.v20080102.jar
plugins/org.eclipse.php.debug.daemon_1.0.2.v20080102.jar
plugins/org.eclipse.php.ui_1.0.2.v20080102.jar
plugins/org.eclipse.php.debug.ui_1.0.2.v20080102.jar
plugins/org.zend.php.debug.debugger.linux.x86_64_5.2.10.v200 70905.jar


Question: The frag jar file I downloaded contains OS specific stuff...
does that mean that another jar file is required in addition to this
one... there is another jar that seems to have no OS association:

org.zend.php.debug.debugger_5.2.10.v20070905.jar

I tried that... and now I have an entry in the "About Eclipse Platform
Plug-ins" window that shows as:

Zend Debugger for Linux x86_64 (Fragment)

I guess that didn't move the ball far enough.

d) cont'd... for the Zend debugger I did not "unpack the jar..." not
familiar with handling the "feature" when getting plug-ins into eclipse.

The URL I used for the remote site entry was:

http://downloads.zend.com/pdt

Eclipse said it found something... actually asked me to accept the
license but when the down load started it reported a 404.

The error message was actually:
--------------------------------
Update operation has failed
Error retrieving
"plugins/org.zend.php.debug.debugger.linux.x86_64_0.0.0.jar". [Server
returned HTTP response code: "404 Not Found" for URL:
http://downloads.zend.com/pdt/plugins/org.zend.php.debug.deb ugger.linux.x86_64_0.0.0.jar.]
Server returned HTTP response code: "404 Not Found" for URL:
http://downloads.zend.com/pdt/plugins/org.zend.php.debug.deb ugger.linux.x86_64_0.0.0.jar.

Update operation has failed
Error retrieving
"plugins/org.zend.php.debug.debugger.linux.x86_64_0.0.0.jar". [Server
returned HTTP response code: "404 Not Found" for URL:
http://downloads.zend.com/pdt/plugins/org.zend.php.debug.deb ugger.linux.x86_64_0.0.0.jar.]
Server returned HTTP response code: "404 Not Found" for URL:
http://downloads.zend.com/pdt/plugins/org.zend.php.debug.deb ugger.linux.x86_64_0.0.0.jar.
----------------------------------

The odd thing is eclipse is trying to retrieve
org.zend.php.debug.debugger.linux.x86_64_0.0.0.jar

notice the 0's... there is no file on that URL with that name.

I'll read your blog, but if you could give some pointers to get me back
to the tutorial it would be great.

R


Nick Boldt wrote:
> A few questions to help diagnose this...
>
> a) what version of PDT are you using?
> b) what version of WTP?
> c) what version of Eclipse?
>
> Good combinations of the above are: 1.0.x, 2.0.x, 3.3.x. No idea if this
> debugger works for PDT 1.1.x, WTP 3.0.x & Eclipse 3.4.x.
>
> d) did you also install the matching feature jar? And by install, I mean
> "unpack the jar so its contents appear in a subfolder in
> eclipse/features/?" Did you also grab the other link-numbered plugin(s)?
>
> http://downloads.zend.com/pdt/plugins/org.zend.php.debug.deb ugger_5.2.10.v20070905.jar
>
> http://downloads.zend.com/pdt/plugins/org.zend.php.debug.deb ugger.linux.x86_64_5.2.10.v20070905.jar
>
> http://downloads.zend.com/pdt/features/org.zend.php.debug_fe ature_5.2.10.v20070905.jar
>
>
> Looks like you'll also have to download and unpack the debugger plugin
> jar. Not sure about the linux fragment jar (the one you downloaded --
> it's just a "fragment" which means it only contains OS-specific code,
> but not the actual runtime stuff).
>
> This downloading and unpacking stuff should all be done for you
> automatically if you give the site.xml URL to Eclipse's Update Manager
> (Eclipse 3.3 and earlier) or the new p2 Install Manager (in Eclipse 3.4).
>
> http://downloads.zend.com/pdt/site.xml
>
> Here's my blog entry on this subject:
>
> http://divby0.blogspot.com/2007/08/pdt-php-debugging-w-zend. html
>
> Good luck!
>
Re: Question about using the internal debugger [message #71696 is a reply to message #71638] Fri, 23 May 2008 03:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: codeslave.ca.ibm.com

> b) WTP 1.1.10x

I hope you mean 2.0 --
http://download.eclipse.org/tools/pdt/downloads/release.php? release=R20080103

> Update operation has failed
> Error retrieving "plugins/org.zend.php.debug.debugger.linux.x86_64_0.0.0.jar". [Server returned HTTP response code: "404 Not Found" for URL: http://downloads.zend.com/pdt/plugins/org.zend.php.debug.deb ugger.linux.x86_64_0.0.0.jar.]

Sounds like there's something wrong with the Zend update site. Here's
the manual install hack:

0. shut down Eclipse

1. download these

http://downloads.zend.com/pdt/plugins/org.zend.php.debug.deb ugger_5.2.10.v20070905.jar

http://downloads.zend.com/pdt/plugins/org.zend.php.debug.deb ugger.linux.x86_64_5.2.10.v20070905.jar

http://downloads.zend.com/pdt/features/org.zend.php.debug_fe ature_5.2.10.v20070905.jar


2. put the feature jar in features/ and the plugin jars in plugins/

3. unpack them all into like-named folders

eclipse/plugins/org.zend.php.debug.debugger_5.2.10.v20070905 /
eclipse/plugins/org.zend.php.debug.debugger.linux.x86_64_5.2 .10.v20070905/
eclipse/features/org.zend.php.debug_feature_5.2.10.v20070905 /

4. restart Eclipse

Does that work? (FWIW, all the php I do is for the web, so I just use
apache for debugging. print and print_r() FTW.)

Nick
Re: Question about using the internal debugger [message #71828 is a reply to message #71696] Fri, 23 May 2008 19:39 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 53
Registered: July 2009
Member
b) I've been using the onboard update tool... shouldn't that get me to
the latest versions?

Yes this procedure did work for me... I was able to complete the PDT
Basic Tutorial debugger section.

Comments:
a) It looks to me like this code is not used too frequently... therefore
the issues with installing it. Because it's used in the tutorial (ie
people are learning) I would say most people will probably lose interest
in PDT, as there is a plethora of other tools available, assuming the
tutorial is an entry point into PDT adoption.

b) While doing any eclipse tutorial from the Help section within
eclipse, when asked to activate a dialog, the scrolling and other
actions are disabled on the help window. So eg, while following along a
tutorial, the directions say "open this dialog and enter some stuff from
a few steps before in the tutorial"... oops, can't scroll back to that
spot if it's out of view.. cancel the dialog... go back... copy...
restart the dialog... paste.


Thanks for your help
R

Nick Boldt wrote:
>
>> b) WTP 1.1.10x
>
> I hope you mean 2.0 --
> http://download.eclipse.org/tools/pdt/downloads/release.php? release=R20080103
>
>
>> Update operation has failed
>> Error retrieving
>> "plugins/org.zend.php.debug.debugger.linux.x86_64_0.0.0.jar". [Server
>> returned HTTP response code: "404 Not Found" for URL:
>> http://downloads.zend.com/pdt/plugins/org.zend.php.debug.deb ugger.linux.x86_64_0.0.0.jar.]
>
>
> Sounds like there's something wrong with the Zend update site. Here's
> the manual install hack:
>
> 0. shut down Eclipse
>
> 1. download these
>
> http://downloads.zend.com/pdt/plugins/org.zend.php.debug.deb ugger_5.2.10.v20070905.jar
>
> http://downloads.zend.com/pdt/plugins/org.zend.php.debug.deb ugger.linux.x86_64_5.2.10.v20070905.jar
>
> http://downloads.zend.com/pdt/features/org.zend.php.debug_fe ature_5.2.10.v20070905.jar
>
>
> 2. put the feature jar in features/ and the plugin jars in plugins/
>
> 3. unpack them all into like-named folders
>
> eclipse/plugins/org.zend.php.debug.debugger_5.2.10.v20070905 /
> eclipse/plugins/org.zend.php.debug.debugger.linux.x86_64_5.2 .10.v20070905/
> eclipse/features/org.zend.php.debug_feature_5.2.10.v20070905 /
>
> 4. restart Eclipse
>
> Does that work? (FWIW, all the php I do is for the web, so I just use
> apache for debugging. print and print_r() FTW.)
>
> Nick
Re: Question about using the internal debugger [message #71874 is a reply to message #71828] Fri, 23 May 2008 22:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: codeslave.ca.ibm.com

I'm not even sure what tutorial you're talking about, but it sounds like
it would benefit from either:

a) being opened in another browser (not in Eclipse) so it's not
blocking, or

b) being converted to use Cheat Sheets to drive the action (so it's
blocking only when it needs to be, ie., when you haven't completed a step)

For (a) the solution would be to have the PDT help stuff hosted at
help.eclipse.org so it's accessible independent of Eclipse (or to open
the help stuff in an external browser, not the embedded-in-Eclipse one).

For (b), if you can point me at the tutorial, maybe I can find time
somewhere to cheatsheet'ify this?

Nick

--
Nick Boldt :: Release Engineer, IBM Toronto Lab
Eclipse Modeling :: http://www.eclipse.org/modeling
http://wiki.eclipse.org/index.php/User:Nickb

Richard Geddes wrote:
> b) I've been using the onboard update tool... shouldn't that get me to
> the latest versions?
>
> Yes this procedure did work for me... I was able to complete the PDT
> Basic Tutorial debugger section.
>
> Comments:
> a) It looks to me like this code is not used too frequently... therefore
> the issues with installing it. Because it's used in the tutorial (ie
> people are learning) I would say most people will probably lose interest
> in PDT, as there is a plethora of other tools available, assuming the
> tutorial is an entry point into PDT adoption.
>
> b) While doing any eclipse tutorial from the Help section within
> eclipse, when asked to activate a dialog, the scrolling and other
> actions are disabled on the help window. So eg, while following along a
> tutorial, the directions say "open this dialog and enter some stuff from
> a few steps before in the tutorial"... oops, can't scroll back to that
> spot if it's out of view.. cancel the dialog... go back... copy...
> restart the dialog... paste.
>
>
> Thanks for your help
> R
>
> Nick Boldt wrote:
>>
>>> b) WTP 1.1.10x
>>
>> I hope you mean 2.0 --
>> http://download.eclipse.org/tools/pdt/downloads/release.php? release=R20080103
>>
>>
>>> Update operation has failed
>>> Error retrieving
>>> "plugins/org.zend.php.debug.debugger.linux.x86_64_0.0.0.jar". [Server
>>> returned HTTP response code: "404 Not Found" for URL:
>>> http://downloads.zend.com/pdt/plugins/org.zend.php.debug.deb ugger.linux.x86_64_0.0.0.jar.]
>>
>>
>>
>> Sounds like there's something wrong with the Zend update site. Here's
>> the manual install hack:
>>
>> 0. shut down Eclipse
>>
>> 1. download these
>>
>> http://downloads.zend.com/pdt/plugins/org.zend.php.debug.deb ugger_5.2.10.v20070905.jar
>>
>> http://downloads.zend.com/pdt/plugins/org.zend.php.debug.deb ugger.linux.x86_64_5.2.10.v20070905.jar
>>
>> http://downloads.zend.com/pdt/features/org.zend.php.debug_fe ature_5.2.10.v20070905.jar
>>
>>
>> 2. put the feature jar in features/ and the plugin jars in plugins/
>>
>> 3. unpack them all into like-named folders
>>
>> eclipse/plugins/org.zend.php.debug.debugger_5.2.10.v20070905 /
>> eclipse/plugins/org.zend.php.debug.debugger.linux.x86_64_5.2 .10.v20070905/
>>
>> eclipse/features/org.zend.php.debug_feature_5.2.10.v20070905 /
>>
>> 4. restart Eclipse
>>
>> Does that work? (FWIW, all the php I do is for the web, so I just use
>> apache for debugging. print and print_r() FTW.)
Re: Question about using the internal debugger [message #71885 is a reply to message #71874] Fri, 23 May 2008 22:40 Go to previous message
No real name is currently offline No real nameFriend
Messages: 53
Registered: July 2009
Member
From within eclipse try these nav waypoints:

Help -> Help Contents -> PDT User Guide -> Getting Started -> Basic
Tutorials -> Working with the Debugger

R

Nick Boldt wrote:
> I'm not even sure what tutorial you're talking about, but it sounds like
> it would benefit from either:
>
> a) being opened in another browser (not in Eclipse) so it's not
> blocking, or
>
> b) being converted to use Cheat Sheets to drive the action (so it's
> blocking only when it needs to be, ie., when you haven't completed a step)
>
> For (a) the solution would be to have the PDT help stuff hosted at
> help.eclipse.org so it's accessible independent of Eclipse (or to open
> the help stuff in an external browser, not the embedded-in-Eclipse one).
>
> For (b), if you can point me at the tutorial, maybe I can find time
> somewhere to cheatsheet'ify this?
>
> Nick
>
Previous Topic:PDT Bug Day?
Next Topic:How to change debug instruction pointer color?
Goto Forum:
  


Current Time: Wed Dec 11 09:50:23 GMT 2024

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

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

Back to the top