mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-04 12:28:35 +02:00
Debug Mode
- No longer generates parsing diagrams if debug mode is off.
This commit is contained in:
parent
1dc2257156
commit
9641dde54f
1 changed files with 62 additions and 59 deletions
|
@ -1990,6 +1990,8 @@ bool A3::is_operator (
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
void A3::dump (const std::string& label)
|
void A3::dump (const std::string& label)
|
||||||
|
{
|
||||||
|
if (context.config.getBoolean ("debug"))
|
||||||
{
|
{
|
||||||
// Set up a color mapping.
|
// Set up a color mapping.
|
||||||
std::map <int, Color> color_map;
|
std::map <int, Color> color_map;
|
||||||
|
@ -2055,5 +2057,6 @@ void A3::dump (const std::string& label)
|
||||||
out << view.render ();
|
out << view.render ();
|
||||||
context.debug (out.str ());
|
context.debug (out.str ());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue