How to debug in Jobs base class?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gundogduyakici
    Senior Member
    • Mar 2018
    • 165

    How to debug in Jobs base class?

    I am writing a custom Schedule for the module I created. But how do I debug to check if it's written correctly? Is there a way to do this?
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello,
    schedule your job, and run php cron.php in the terminal. Before you can remove running cron.php for crontab (or Scheduled Task)

    Comment

    • gundogduyakici
      Senior Member
      • Mar 2018
      • 165

      #3
      I open the file path in the terminal. I am writing Cron.php. I get this error.

      'cron.php' is not recognized as an internal or external command,
      operable program or batch file.

      Comment

      • tanya
        Senior Member
        • Jun 2014
        • 4308

        #4
        Originally posted by tanya
        php cron.php
        better as server user

        Comment

        • gundogduyakici
          Senior Member
          • Mar 2018
          • 165

          #5
          Thanks I've done it. tanya

          Comment

          Working...