Quote from: ppaul at Jul 24, 2006, 12:13 PM
Without knowing about the mere existence of an event log viewer, I’ve done this type of "home-brewn" debugging from the beginning. Not very comfortable, but works. 
Agreed...
Being a long time J2EE developer, I grew accustomed to remote debugging of web requests, and so most of the debugging I do on the core code is via
DBG and the
PHPEclipse IDE’s debug environment, where I can step through web requests a line at a time. However, in the current MODx architecture, you seemingly can’t step through snippets/plugins because they are eval()’d by the system (somebody correct me if you’ve been able to do this in any remote debugging environment). Upcoming changes to the way MODx components are executed will remedy this and allow you to use traditional remote debugging techniques for components. Until then, and for those that don’t have access to or want to invest the time in getting set-up with such an environment, returning debug output from your snippet is generally your most efficient means of doing this. I even prefer to have my snippets be includes so that I can simply modify the PHP files in the IDE and instantly see changes when working locally (or following a quick FTP upload, remotely).
Full-featured, customizable logging for auditing, debugging, and other purposes will be introduced in the 1.0 code base, including the ability to write the logs to file, database, screen, or just about anywhere imaginable. So you could write debugging output to a custom debug file, and/or critical run-time error output to the Apache error log, and/or save component-level error details into the session.
In addition, I believe some other work on more interactive debugging features is also being done, so you can get unobstrusive optional debug data directly within the MODx environment.