Skip to content
  • 3 Votes
    1 Posts
    219 Views
    barisB

    Link Preview Image GitHub - NodeBB/nodebb-plugin-debug-hook: A plugin to see parameters passed to hooks in real time

    A plugin to see parameters passed to hooks in real time - NodeBB/nodebb-plugin-debug-hook

    favicon

    GitHub (github.com)

    Sometimes you need to see the result of some filter/action on a live/prod instance and it is not easy to add a console.log and restart.

    This plugin allows you to select a plugin hook and see the resulting data after all plugins are done executing their hooks.

    Here is a sample from running it against filter:search.query

    d0347032-02ff-4dcc-83a8-8bc039b4b297-image.png

    The output is updated automatically every time you trigger the hook.

  • 0 Votes
    1 Posts
    3k Views
    F

    Anyone had experience using Opbeat (https://opbeat.com/) with nodebb?
    Opbeat is a good logging and debugging tool. They have plugin for nodejs. I'm wondering do we have to modify nodebb code(app.js?) or we can do it through a nodebb plugin?

    Thanks!

    Here is their instructions for nodejs app:
    0_1507658427102_opbeat_nodejs.jpg

  • 1 Votes
    9 Posts
    5k Views
    BriB

    @madwyn said:

    debugging a clustered app

    It actually looks like this was fixed (or made much nicer, anyway) in 0.11:
    https://strongloop.com/strongblog/whats-new-nodejs-v0-12-debugging-clusters/

  • 0 Votes
    5 Posts
    4k Views
    Peter-Zoltan KeresztesP

    I have tried to browse the plugins in the hope that I would get some more information but I did not got one single line. There still have to be a way to put this in full debug mode.