Ask YC: IDE debugging for web programming - a dream or a reality?
Has anybody successfully done this in with any web programming languages + frameworks? I'm a cakePHP developer, for example, and I'd like to see the sequence of calls from the time the dispatcher is instantiated to the time that the views are echo'd and sent to the browser.
Just curious if anybody has done this successfully in PHP, Symfony, CakePHP, Ruby, Rails, Python, Django, whatever it may be... I've been doing web development for a few years now and have resorted to elaborate print statements and variable dumps for my debugging needs, I need more!
If you've lived the debugging dream, or have any debugging tips to offer, please post the tools you've used and any resources you may know of to help me (and our readers) set it up.
I've recently installed Eclipse PDT with Zend Debugger in an attempt to do this and had luck in simple scripts with include statements, but once mod_rewrite gets involved, everything goes straight to hell.
I'm curious if I should keep trying or if it's nothing but a dream...
3 comments
[ 3.2 ms ] story [ 31.3 ms ] threadAnd since you already have experience with eclipse, you should be quite comfortable using Aptana
This lets you do gdb style things like put watches on variables, halt execution, change the value of variables at runtime etc. This might be in line with what you are talking about.
I don't know how many languages XDebug supports but if I had to come up with a solution from scratch, I believe you would need to hack the respective interpreters for your languages to get the functionality you are suggesting.
Once you get the ability to externally inform the interpreter of how you want it to behave (other than just executing the program it normally does) you can get watches, breakpoints and changes variables on the fly.
(My understanding is that VisualWorks is now going to concentrate on supporting Seaside. You should be able to see many of the same benefits there.)