The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Padre::Debug - Compile-time debugging library for Padre

SYNOPSIS

  # In the launch/dev.pl script
  BEGIN {
      $Padre::Debug::DEBUG = 1;
  }
  
  use Padre;
  
  # In each Padre::Foo class
  use Padre::Debug;
  
  sub method {
      TRACE('->method') if DEBUG;
      
      # Your code as normal
  }

DESCRIPTION

This is a debugging utility class for Padre. It provides a basic set of simple functionality that allows for debugging/tracing statements to be used in Padre that will compile out of the application when not in use.