User related debugmode

Administration tools ::: tool_userdebug
Maintained by Andreas Grabs
With this plugin you can define the debugmode for only some selected users.
Latest release:
371 sites
126 downloads
18 fans
Current versions available: 4

Admin tool “User related debugmode”

Purpose

If you want to activate the debugging mode for some users on your system, the setting of $CFG->debugusers isn’t the best solution. You have to edit the config.php which allways is a risk to break you system. Also with this setting you only change the behaviour of the function debugging(). But if the debugging setting is turned of you’ll never see the debug messages.
Why do I need this?
If you adminstrate some productive systems sometimes you have a situation to need to turn on the debugging mode. But if you do this on a productive system, all users will see the debugging messages. In most cases it isn’t what you want.
So with this plugin you can turn on the debugging mode just for you or some selected users.

Here are the main features of this plugin:

  • You can do all settings on the interface. There is no need to edit the config.php.
  • You can turn on the full set of debugging features for defined users. This means you can leave the moodle standard debug setting to “None”.
  • You can turn on the debuggin mode just for the current session (ad hoc debugging). So you don’t need to turn it off after usage.

Installation

  1. Copy this plugin into the folder admin/tool inside your moodle installation.
  2. Go to the Site administration -> Notifications to start the install process.

Usage

After the installation you will find the new link User related debugmode below Site administration -> Development
The Ad hoc debugmode you can turn on in your profile settings or in the frontpage menu.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4

Contributors

Andreas Grabs (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • MD shot of me from his iphone4
    Mon, 8 Oct 2012, 12:05 PM
    http://tracker.moodle.org/browse/MDL-34632 was created for this case. Feel free to contribute any discussion or patch there smile
  • Germán and Temudgin
    Tue, 16 Oct 2012, 2:29 AM
    This user_related_debugmodus plugin is great. I also think this plugin should go into Moodle core. It will help admins while it does not unnecessarily disturb regular users in a production environment. I only wished I had seen it before.

    Maybe the plugin developer-maintainer could send an Email to Martin at Moodle HQ or/and to Moodle developers, or post a suggestion in Moodle tracker.
  • Ryley Rush
    Fri, 17 May 2019, 9:45 PM
    When I put require_once($CFG->dirroot.'/admin/tool/userdebug/lib.php'); Moodle crashes. When I change even one symbol it doesn't crash but obviously, the plugin doesn't work.
    I use Moodle for my team of writers at
  • Andreas Grabs
    Fri, 17 May 2019, 11:32 PM
    Hi Ryley, thanks for trying out this plugin. The require_once line has to be appended after the line with require_once(__DIR__ . '/lib/setup.php');
    --- config.php ---
    require_once(__DIR__ . '/lib/setup.php');
    require_once($CFG->dirroot.'/admin/tool/userdebug/lib.php');

  • Andreas Grabs
    Sun, 2 Aug 2020, 3:56 AM
    Hi at all, please note there is no need anymore to modify the config.php. So you can use this plugin just with a regular installation.
    Thanks for trying.
  • Publixsurvey com
    Sun, 6 Nov 2022, 11:47 AM
    Helpful for me
  • Jürgen Schmitz
    Wed, 6 Nov 2024, 10:43 PM
    There seams to be something wrong with the version labeling of this plugin. The Moodle plugin version API offers just the latest version for Moodle 4.5, even when filtering for Moodle 4.1. (https://download.moodle.org/api/1.3/pluginfo.php?plugin=tool_userdebug&format=json&minversion=0&branch=4.1) But this plugin version fails to work with 4.1.
  • Andreas Grabs
    Thu, 7 Nov 2024, 12:27 AM
    Ja, da scheint etwas an der API nicht zu passen. Wenn ich das für das unilabel aufrufe, dann passt das: https://download.moodle.org/api/1.3/pluginfo.php?plugin=mod_unilabel&format=json&branch=4.1
    Wenn ich die komplette JSON Datei lade, steht auch alles korrekt drin. Es scheint daher ein API-Problem zu sein sad.
  • Jürgen Schmitz
    Thu, 7 Nov 2024, 4:35 PM
    Das wäre ärgerlich. Ein Update führte leider dazu, dass Moodle 4.1 nicht mehr lief und die alte Version erstmal wieder händisch hergestellt werden musste.
  • Andreas Grabs
    Thu, 7 Nov 2024, 5:23 PM
    Ich verstehe, dass das ärgerlich ist. Allerdings kann ich hier nicht viel tun. Es scheint ja ein generelles Problem mit der API zu sein.
    Ich nutze immer die komplette JSON-Datei ohne Filter. Da steht alles korrekt drin und die Updates passen. Du solltest das in Tracker melden.
    --------
    I understand that this is annoying. However, there's not much I can do about it. It seems to be a general problem with the API.
    I always use the complete JSON file without filters. It contains everything correctly and the updates are correct. You should report this in the Moodle Tracker.
  • Thorsten Bartel
    Tue, 11 Feb 2025, 4:43 PM
    Ich vermute, das hängt damit zusammen, dass die beiden anderen veröffentlichten Versionen noch mit "Maturity = BETA" gekennzeichnet sind. Soweit ich weiß, filtert die Plugin-API diese dann raus.

    Ein erneutes Release mit Maturity = STABLE sollte das Problem also beheben.
Please login to post comments