Skip to content

Commit b7f474c

Browse files
committed
Fix debug
1 parent c2706b4 commit b7f474c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

PHPCtags.class.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ private function process_single_file($filename)
473473
echo " ".$this->filecount." files".PHP_EOL;
474474
}
475475
$this->filecount++;
476+
$startfile = microtime(true);
476477

477478
$this->setMFile((string) $filename);
478479
$file = file_get_contents($this->mFile);
@@ -487,12 +488,14 @@ private function process_single_file($filename)
487488
}
488489

489490
$struct = $this->struct($this->mParser->parse($file), TRUE);
491+
$finishfile = microtime(true);
490492
$this->mLines[$this->mFile] = $this->render($struct);
493+
$finishmerge = microtime(true);
491494
$this->tagdata[$this->mFile][$md5] = $this->mLines[$this->mFile];
492495
if ($this->mOptions['debug']) {
493496
echo "Parse: ".($finishfile - $startfile).", Merge: ".($finishmerge-$finishfile)."; (".$this->filecount.")".$this->mFile.PHP_EOL;
494497
} else if ($this->mOptions['V']) {
495-
echo "U";
498+
echo ".";
496499
}
497500
}
498501

bootstrap.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@
111111
$options['V'] = false;
112112
}
113113

114-
if (!isset($options['debug'])) {
114+
if (isset($options['debug'])) {
115+
$options['debug'] = true;
116+
} else {
115117
error_reporting(0);
116118
}
117119

0 commit comments

Comments
 (0)