Changeset 10032
- Timestamp:
- 01/01/10 03:00:11 (2 years ago)
- File:
-
- 1 edited
-
trunk/Padre/dev.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/dev.pl
r9823 r10032 14 14 # Collect options early 15 15 use Getopt::Long (); 16 use vars qw{$DEBUG $TRACE $DIE $PROFILE $PLUGINS $USAGE };16 use vars qw{$DEBUG $TRACE $DIE $PROFILE $PLUGINS $USAGE $FULLTRACE}; 17 17 18 18 BEGIN { … … 22 22 $PLUGINS = 0; 23 23 $USAGE = 0; 24 $FULLTRACE = 0; 24 25 Getopt::Long::GetOptions( 25 26 'usage|help' => \$USAGE, … … 31 32 'profile' => \$PROFILE, 32 33 'a' => \$PLUGINS, 34 'fulltrace' => \$FULLTRACE, 33 35 ); 34 36 } … … 70 72 push @cmd, '-d' if $DEBUG; 71 73 push @cmd, '-dt:NYTProf' if $PROFILE; 74 75 if ($FULLTRACE) { 76 eval { require Devel::Trace; }; 77 if ($@) { 78 print "Error while initilizing --fulltrace while trying to load Devel::Trace:\n". 79 "$@Maybe Devel::Trace isn't installed?\n"; 80 exit 1; 81 } 82 push @cmd, '-d:Trace'; 83 } 72 84 73 85 # Rebuild translations … … 114 126 print <<"END_USAGE"; 115 127 Usage: $0 116 -h show this help 117 -d run Padre in the command line debugger (-d) 118 -t write tracing information to .padre/debug.log 119 -p profile using Devel::NYTProf 120 -a load all plugins in the svn checkout 121 --die add DIE handler 128 -h show this help 129 -d run Padre in the command line debugger (-d) 130 -t write tracing information to .padre/debug.log 131 -p profile using Devel::NYTProf 132 -a load all plugins in the svn checkout 133 --die add DIE handler 134 --fulltrace full sourcecode trace to STDERR 122 135 123 136 LIST OF FILES list of files to open
Note: See TracChangeset
for help on using the changeset viewer.
