We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    EDLIN’s not all that bad; I used to write assembly language utilities for my Amstraad 8086 using it.
      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org
      • 27519
      • 275 Posts
      Quote from: sottwell at Oct 31, 2010, 10:43 AM

      EDLIN’s not all that bad; I used to write assembly language utilities for my Amstraad 8086 using it.

      Yes, but we’ve upped the game (a little) since the days of Amstrads, C64’s and VICs grin
        MODx Revolution / MAMP / OS X
        • 27519
        • 275 Posts
        A little progress...

        I have the debugger running in NetBeans however it appears to completely ignore breakpoints making it effectively useless.

        The only way to make it halt is to check "Stop at first line" in the Preferences. This is actually a pain as that requires you to go through every file during debugging.

        I dismissed Eclipse PDT today. It’s an absolute memory drain and won’t even load the MODx project into its workspace.

        If that is as good as it gets I’ll have two more options:

        1. Have another look at PhpStorm
        2. Go back to my echo and error_log statements

        The last options feels like writing software on the wall of a cave using the furry end of a dead animals tail... >:(
          MODx Revolution / MAMP / OS X
          • 26903
          • 1,336 Posts
          Which xdebug helper extension do you use in Chrome? I use ’Xdebug helper’, you don’t seem to be triggering the debug session, this could be a setting here, like ide identifier or port for instance. I’ve been using Netbeans on both windows and linux boxes for years, with IE browsers Chrome and Firefox without any of these issues.
            Use MODx, or the cat gets it!
            • 27519
            • 275 Posts
            Thanks for the tip! To be honest I did not know about the requirement for a helper extension.

            I have installed Xdebug Helper for Chrome as you suggested.

            In the settings for the extension, I choose ’Other’ for IDE key as that allowed me to put in ’netbeans-xdebug’ as a value for the session key, which is the same as NetBeans has in its preferences. I’m not too sure whether that works as I don’t see that bug icon appearing in the address bar. Also the setting for the IDE key seems to pop back to its default setting.

            A step closer, but not quite there yet.
              MODx Revolution / MAMP / OS X
              • 27519
              • 275 Posts
              Whaaahoooo!!!!

              It’s working!

              @shamblett: Thanks again for your brilliant tip!

              The trick is to add your domains quite literally so: ’localhost:8888/modx’ and not ’http://localhost:8888/modx’. Then the icon appears and you can do some 21st century debugging!

              My echo and error_log days are over....
                MODx Revolution / MAMP / OS X