Site in read-only mode
This site is now read-only following the release of MyBB 1.8 and the new mods site.
If you are looking for MyBB 1.8 mods please click here to visit the new mods site.
You can continue to download submissions for MyBB 1.6 and earlier here, however new submissions will only be accepted via the new mods site.
MyDevel: Debug
Adds debug functionality to MyBB.
This plugin is for development purposes only.As every plugin developer knows, during the development stage of a plugin you need to use var_dump() or print_r() a lot. This is the normal way of debugging in PHP but this breaks the layout and style of MyBB and puts the information on top of the page without any markup or structure. MyDevel: Debug adds two simple functions to MyBB to add debug information in the header and structures it in a more convenient way. Arrays and objects are structured in a tree-like way and levels are (de)collapsible.


The functions that can be used are:
1) mydump()
This is a variant of var_dump(). The first parameter is the variable you would like to see. The second optional parameter is the name to easily identify the dump.
mydump($var,
$name='...');
2) mybacktrace()
This will dump the backtrace to the debug section. It doesn't take any
parameter.
mybacktrace();
The plugin also includes a test package which you can activate if you like
to see the functionality of this plugin. After you activated this test
package, post a new thread to your forum and you will see the content of
the $mybb and $thread_info variable in the header. In the AdminCP
Dashboard you will also see a dump that was made from a admincp hook.
There are two settings that can be set:
- The usergroups separated by a comma for which the debug information
should be visible. By default this is only usergroup 4 (=
Administrators)
- The skin of the debug information.