Web Debugging Environment for PHP? 8
Sarek asks: "I work in a mostly Windows environment at work writing ASP but I much prefer PHP. While I seem to have convinced the powers that be that PHP is better, there is only one hurdle I can't seem to overcome to get them to start writing in PHP. I can't seem to find a debugging environment for PHP like there is for ASP. While I'm perfectly happy writing without it I have seen a great many benefits to having one, such as faster debugging. Has anyone thought to make one yet? And if so where can I find it? For those of you that don't know ASP uses MS InterDev. Which in short allows you to debug ASP just like you would debug a compiled language, by setting breakpoints, stepping through the code, etc..."
Re:Nexidion (Score:1)
Re:Allaire (Score:1)
Re:Debugger? rtfm (Score:2)
Allaire (Score:2)
a few other debuggers (Score:2)
http://www.php.net/manual/debugger.php [php.net]
Second, phpdebugger :
.sig --
http://www.phpdebug.com [phpdebug.com]
--
Nexidion (Score:3)
Nexidion Designer is an Integrated Development Environment (IDE) for web development on Linux. Although Designer is great for developing traditional static HTML pages, it is particularly targeted at dynamic web sites. This preview release contains the first fully interactive PHP debugger, allowing you to set breakpoints and step through your PHP code line by line, monitoring the values of any variable or expressions. It ain't Win32, but might be something you'd like to look at.
Debugger? rtfm (Score:3)
Debugger Configuration Directives
debugger.host string
DNS name or IP address of host used by the debugger.
debugger.port string
Port number used by the debugger.
debugger.enabled boolean
Whether the debugger is enabled
Additionally, make sure you have the following set correctly.
display_errors boolean
This determines whether errors should be printed to the screen as part of the HTML output or not.
error_log string
Name of file where script errors should be logged. If the special value syslog is used, the errors are sent to the system logger instead. On UNIX, this means syslog(3) and on Windows NT it means the event log. The system logger is not supported on Windows 95.
error_reporting integer
Set the error reporting level. The parameter is an integer representing a bit field. Add the values of the error reporting levels you want.
Table 3-1. Error Reporting Levels
bit value enabled reporting
1 normal errors
2 normal warnings
4 parser errors
8 non-critical style-related warnings
The default value for this directive is 7 (normal errors, normal warnings and parser errors are shown).
For windows development I recommend a local instance of IIS or Apache w/ PHP (easy to setup - read the INSTALL file in the root of the win32 distribution).
A good editor is Homesite from Allaire [allaire.com] - you can map a directory to your www server root, and when you preview pages it will get passed through the interpretor and generate error messages etc. The editor also does correct color coding for many different languages (javascript, cfml, asp, php, html, xml etc).
Php Debugging. (Score:4)
And here's a shoddy list of PHP editors [demon.co.uk]. Shoddy, as half of them aren't PHP related.
Oh, and First Post d00dz!