We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27843
    • 170 Posts
    Silver Zachara Reply #1, 18 years ago
    hi all,

    I want to ask you what is the best practice how to debug snippets, because I can’t use breakpoints in Eclipse beacuse they are saved in DB.

    Thanks for advice.
      • 26903
      • 1,336 Posts
      You could just externalise the snippet, i.e copy the snippet body into an external php file and just include this file,so your snippet in MODx just becomes :-

      <php
      include_once("external snippet");
      ?>

      That way you can use it as a normal file.
        Use MODx, or the cat gets it!
        • 27843
        • 170 Posts
        Silver Zachara Reply #3, 18 years ago
        Quote from: shamblett at Sep 28, 2008, 05:44 AM

        You could just externalise the snippet, i.e copy the snippet body into an external php file and just include this file,so your snippet in MODx just becomes :-

        <php
        include_once("external snippet");
        ?>

        That way you can use it as a normal file.


        This is waht I need. rolleyes rolleyes

        Thank you.