View Single Post

  #2 (permalink)  
Old 03-14-2008
PaulB
 
Posts: n/a
Default Re: Debugging PHP

Freelancer71 wrote:
> "Rguy84" <ryan.benson@gmail.com> wrote in message
> news:40d38739-8e63-46f0-a644-cb4c61b9674d@i12g2000prf.googlegroups.com...
>> On Mar 12, 6:12 pm, "Freelancer71" <f93c0...@yahoo.com> wrote:
>>> Is it possible to debug PHP code in dreamweaver 8?

>>
>> Debug how? There isn't anything that will say error on line 2. You'll
>> have to echo variables or whatever to test. You can also use Eclipse
>> and download the PHP pack.

>
> By debug I mean execute the statements one by one or trace. Is that
> possible with eclipse? Is it free?


It is so easy to find errors on php pages because a script that stops
returns an error with the line number. Therefore the error is on that line
or the line before, (like a missing semicolon at the end of the previous
line). Each of the php structures are formed in small units and so may be
commented out or run individually and as others have said echo can be used
at each stage to show the variables. I'm not even using a local setup, I'm
editing and posting to a distant server but it's still a simple process.

I've done assembly language programming and there you do need step by step
because errors don't return a line number, the program just doesn't work but
php isn't like that, I don't see the need.

Paul

--
Add an underscore after the p to reply


Reply With Quote