tags:

views:

38

answers:

3

i am pulling apart a third party shopping cart and they have included a bunch of junk (as usual) aside from having to remove and bring back pieces of code to see what it does. is it possible to execute a few lines?

although setting up comments on codes i dont want to execute sounds good which i just thought of :p

but what other things exist that you guys know of?

thanks

+1  A: 

This may be obvious but you can use a debugger (eclipse php or netbeans) and just put breakpoints after certain parts and "run to" that portion of the code. From there you can evaluate variables and potentially see output as it happens.

Arthur Frankel
is it possible to make dreamweaver do that?
iaddesign
Here's a post that talks about it:http://stackoverflow.com/questions/1011008/debugging-php-code
Arthur Frankel
A: 

Will codepad work ?

sjobe
nice site thanks. sadly it wont work, the page im modifying rely alot on included libraries and classes
iaddesign
A: 

I don't know about codepad but I'm pretty sure Dreamweaver doesn't have a native PHP debugger built in. Take look at Xdebug or the Zend IDE.

Darrell Brogdon