Conversation
syncdiff
Outdated
There was a problem hiding this comment.
I think instead of running through the files and modifying the variable, you may want to set this up as a config file style option. If it's defined in the config file debug = OR --debug is set, specifically set something in $config to indicate that debugging output should be turned on. Since $config gets passed around that should work out fine, and should be more robust than your find and mapping you are doing here.
There was a problem hiding this comment.
Noting that you'll also have to modify the yacc and regenerate the lexer and parser to add a config file option. That should likely be done as a separate commit.
|
Please review my changes |
|
Now config file should look like |
SyncDiff wrote a lot of additional information. So, I decided to create a debug mode.
At first it's a simple DEBUG flag, but it could be expand to work with log files and so on in future.