English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have used other programming languages such as C, C++ where you can debug the code using the IDE however how is this possible with PHP? I would like to step through the program and see at run time what values are being assigned.

2007-05-29 21:05:07 · 3 answers · asked by Siu02rk 3 in Computers & Internet Programming & Design

Can any of these be used with Dreamweaver 8?

2007-05-30 00:15:32 · update #1

3 answers

Searching google for "php debugger" returns this site, which looks like it offers a free debugger...

http://dd.cron.ru/dbg/

2007-05-29 21:17:39 · answer #1 · answered by Bert 3 · 0 0

There are several php IDE's and Editors that have built in debugers, the best in my opinion is the one from nusphere called phped. I'll include some sources below

2007-05-29 22:48:12 · answer #2 · answered by PHPwork 1 · 0 0

Personally, I never use any debugger: I debug on-line!
For each routine (or function) where I doubt the value of a valiable, I put
echo ("var=".$var."
");
If needed for arrays:
while(list($name,$value) = each(arrayname, such as $_POST)) {
$$name = $value;
echo ($name."=".$value);}
or, simply:
echo ("

");
print_r($array);
echo ("
");

Debuggers have one big problem: they "run" a PhP that may not be the PhP on your server! (and what works with the debugger may not work on-line...)

2007-05-30 20:49:40 · answer #3 · answered by just "JR" 7 · 0 0

fedest.com, questions and answers