Dbugging PHP and Eclipse

Dbugging PHP and Eclipse

am 30.09.2007 21:08:15 von AlterEgo

Hi all,

This is my first PHP development project. So far, I have around 15 classes
and 8 viewable pages. I've overcome a number of ideosynchrosies (such as no
whitespace after the heredoc end delimiter, jeez!). But, debugging has been
a tortuous problem for me.

I'm developing PHP 5.2.4 applications in an Eclipse 3.1/phpEclipse 1.1.8 IDE
on WIN 2K3 Server. I installed the free NuVision debugger php_dbg.dll-5.2.x.

I set up the debugging environment to look for the interpreter: c:\program
files\php\php.exe.

When I run in debug mode, I get the errors that caused a failure in the
Consode tab, example:
PHP Warning: current(): Passed variable is not an array or object in
C:\Web\Tbwe\Tbwe\test\session_mgr_test_harness.php on line 57

I set breakpoints which seem to be ingnored. The process doesn't stop at the
breakpoint ,and I get no other debugging information such as variable
values, etc. (probably because breakpoint isn't being honored I guess).

Am I missing configuration issues? Are my installed versions incompatible?

Without the additional debugging information, I will have to change back to
a Java or .NET stack, which I do not want to do for this project.

How do I get more robust debugging? Any help is greatly appreciated.

Thanks.

Re: Dbugging PHP and Eclipse

am 01.10.2007 01:21:46 von Charles Polisher

AlterEgo wrote:

> This is my first PHP development project. So far, I have around 15 classes
> and 8 viewable pages. I've overcome a number of ideosynchrosies (such as no
> whitespace after the heredoc end delimiter, jeez!). But, debugging has been
> a tortuous problem for me.
>
> I'm developing PHP 5.2.4 applications in an Eclipse 3.1/phpEclipse 1.1.8 IDE
> on WIN 2K3 Server. I installed the free NuVision debugger php_dbg.dll-5.2.x.
>
> I set up the debugging environment to look for the interpreter: c:\program
> files\php\php.exe.
>
> When I run in debug mode, I get the errors that caused a failure in the
> Consode tab, example:
> PHP Warning: current(): Passed variable is not an array or object in
> C:\Web\Tbwe\Tbwe\test\session_mgr_test_harness.php on line 57
>
> I set breakpoints which seem to be ingnored. The process doesn't stop at the
> breakpoint ,and I get no other debugging information such as variable
> values, etc. (probably because breakpoint isn't being honored I guess).
>
> Am I missing configuration issues? Are my installed versions incompatible?
>
> Without the additional debugging information, I will have to change back to
> a Java or .NET stack, which I do not want to do for this project.
>
> How do I get more robust debugging? Any help is greatly appreciated.

This link may be of some help:
http://www.thierryb.net/pdtwiki/index.php?title=Using_PDT_:_ Installation_:_Installing_the_Zend_Debugger
or, http://tinyurl.com/ytmt6b

Also, there is a new all-in-one download of Eclipse+PDT release 1.0 at:
http://downloads.zend.com/pdt/all-in-one/

Note that PDT is a separate (different) Eclipse-PHP editing platform than
PHP Eclipse. I use the all-in-one download with debugging, and I like it.
YMMV.

Regards,
Charles

Re: Dbugging PHP and Eclipse

am 02.10.2007 01:21:42 von AlterEgo

"Charles Polisher" wrote in message
news:slrnfg0bsa.r19.cpolish@localhost.localdomain...
> AlterEgo wrote:
>
>> This is my first PHP development project. So far, I have around 15
>> classes
>> and 8 viewable pages. I've overcome a number of ideosynchrosies (such as
>> no
>> whitespace after the heredoc end delimiter, jeez!). But, debugging has
>> been
>> a tortuous problem for me.
>>
>> I'm developing PHP 5.2.4 applications in an Eclipse 3.1/phpEclipse 1.1.8
>> IDE
>> on WIN 2K3 Server. I installed the free NuVision debugger
>> php_dbg.dll-5.2.x.
>>
>> I set up the debugging environment to look for the interpreter:
>> c:\program
>> files\php\php.exe.
>>
>> When I run in debug mode, I get the errors that caused a failure in the
>> Consode tab, example:
>> PHP Warning: current(): Passed variable is not an array or object in
>> C:\Web\Tbwe\Tbwe\test\session_mgr_test_harness.php on line 57
>>
>> I set breakpoints which seem to be ingnored. The process doesn't stop at
>> the
>> breakpoint ,and I get no other debugging information such as variable
>> values, etc. (probably because breakpoint isn't being honored I guess).
>>
>> Am I missing configuration issues? Are my installed versions
>> incompatible?
>>
>> Without the additional debugging information, I will have to change back
>> to
>> a Java or .NET stack, which I do not want to do for this project.
>>
>> How do I get more robust debugging? Any help is greatly appreciated.
>
> This link may be of some help:
> http://www.thierryb.net/pdtwiki/index.php?title=Using_PDT_:_ Installation_:_Installing_the_Zend_Debugger
> or, http://tinyurl.com/ytmt6b
>
> Also, there is a new all-in-one download of Eclipse+PDT release 1.0 at:
> http://downloads.zend.com/pdt/all-in-one/
>
> Note that PDT is a separate (different) Eclipse-PHP editing platform than
> PHP Eclipse. I use the all-in-one download with debugging, and I like it.
> YMMV.
>
> Regards,
> Charles

Thanks Charles. I'll try your options.