Hi All,
I am wondering how the more experienced programmers get to test and debug plugins. It seems that there are never errors outputted or any comments at all which make it really hard to debug any kind of elgg code.
How do you guys handle this, what kind of software you use or what kind of commands do you put in your code to trace the value of a variable?
I use netbeans to code.
Thanks for any help I can get!
-marcom
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- phooe@phooe

phooe - 0 likes
- Brett@brett.profitt

Brett - 0 likes
- marcom@marcom

marcom - 0 likes
- Evan Winslow@ewinslow

Evan Winslow - 0 likes
- an224@an224

an224 - 0 likes
- Brett@brett.profitt

Brett - 0 likes
- an224@an224

an224 - 0 likes
- danielwells@danielwells

danielwells - 0 likes
You must log in to post replies.you can enable debugging in the admin"site settings", it provides some error reporting, other than that it's var_dump and echo, to find outr whats going on.
Also useful is to set php_value display_errors 1 in your .htaccess file.
this is very useful thanks to both of you.
Does anyone use firephp at all? and if someone does, can you give a small overview of how to use it or some pages that could be useful?
Also, keep those hints coming, they really do help!
elgg_dev_tools is a great plugin for debugging.
I used NetBeans 6.8. Problem with debuger is that only frist page is tracking after code is end Netbeans lost session for debuging. This complication is from ellg concept where debuger can't recognize controler for next loop. Display error is useful but real debug is more flexible I think.
I agree with Evan....Cash's plugin is awesome: http://community.elgg.org/pg/plugins/costelloc/read/384962/elgg-developer-tools
@an224 - I use Eclipse with xdebug an it works great across all pages. At least in Eclipse there is a setting to debug just the first page or to debug all...maybe there's something similar in Netbeans?
Brett Thank for message. Netbans has same option debug single or debug project. I have a few paraler project where Netbeans working properly. Site debuging is better and fasties way for achieve problem in variable scopes etc as you know better.
A.
I got xdebug up an running in my netbeans environment a while back and it has made all the difference in debugging and understanding how ELGG works.