Announcement

Collapse
No announcement yet.

Debug Mode

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Debug Mode

    I'm used to switch on/off debug mode just to test sql statements but should be nice to use this setting alto to display personal debug messages. This help investigating some boring syntax errors in the absence of an editor who will take charge of the work.
    Other than that ... anyone knows how to do a check (a variable or a method) if I am in debug mode and thus avoid to comment and uncomment the messages that I use for testing?

    Thank you.
    Giorgio Bravi
    Dolphin Software & Thinkware
    www.dolphin.it

  • #2
    I use a global variable for that if I understand your message right. But I debug into a text file.

    if ([glob_debug])==1) {
    WriteDbg('something went wrong: '.$myvar.' .... etc
    }
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      Thank you Albert
      Simplest solutions are everytime the best!
      Giorgio Bravi
      Dolphin Software & Thinkware
      www.dolphin.it

      Comment

      Working...
      X