We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22303 MODX Staff
    • 10,725 Posts
    Does anyone have any ideas for some snippet debugging features we could add to the manager or the parser that could make snippet development more efficient and easier to employ for the average scripter?
      • 32963
      • 1,732 Posts
      Does anyone have any ideas for some snippet debugging features we could add to the manager or the parser that could make snippet development more efficient and easier to employ for the average scripter?

      Nothing major at the moment but I have some plans in place to deal with sending debug text back to the user. This could be generated inside a separate window.

      example:

      debug("This is line 21",$color);

      $modx->raiseError(901,"title","additional message");

      $modx->messageAlert("Message",$action);

      $modx->messageQuit - same as before

      $modx->messageConfirm("Are you sure?",$trueaction,$falseaction);

      $modx->messagePrompt("Please enter your name?",$action);

      note $action can be a url or a javascript function to be called or evaluated. An action of -1 will trigger a history.go(-1)

      Got any more?
        xWisdom
        www.xwisdomhtml.com
        The fear of the Lord is the beginning of wisdom:
        MODx Co-Founder - Create and do more with less.