Skip to content

Commit 8d05ec7

Browse files
committed
Merge pull request #6164
aa41bc8 Update help message to match the #4219 change (lpescher) f60bb5e Update documentation to match the #4219 change (lpescher) cb87386 Make command line option to show all debugging consistent with similar options (lpescher)
2 parents 4f1677b + aa41bc8 commit 8d05ec7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

doc/developer-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ CXXFLAGS="-g -ggdb -O0" or whatever debug flags you need.
102102
If the code is behaving strangely, take a look in the debug.log file in the data directory;
103103
error and debugging messages are written there.
104104

105-
The -debug=... command-line option controls debugging; running with just -debug will turn
105+
The -debug=... command-line option controls debugging; running with just -debug or -debug=1 will turn
106106
on all categories (and give you a very large debug.log file).
107107

108108
The Qt code routes qDebug() output to debug.log under category "qt": run with -debug=qt

src/init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ std::string HelpMessage(HelpMessageMode mode)
368368
if (mode == HMM_BITCOIN_QT)
369369
debugCategories += ", qt";
370370
strUsage += HelpMessageOpt("-debug=<category>", strprintf(_("Output debugging information (default: %u, supplying <category> is optional)"), 0) + ". " +
371-
_("If <category> is not supplied, output all debugging information.") + _("<category> can be:") + " " + debugCategories + ".");
371+
_("If <category> is not supplied or if <category> = 1, output all debugging information.") + _("<category> can be:") + " " + debugCategories + ".");
372372
#ifdef ENABLE_WALLET
373373
strUsage += HelpMessageOpt("-gen", strprintf(_("Generate coins (default: %u)"), 0));
374374
strUsage += HelpMessageOpt("-genproclimit=<n>", strprintf(_("Set the number of threads for coin generation if enabled (-1 = all cores, default: %d)"), 1));

src/util.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ bool LogAcceptCategory(const char* category)
208208

209209
// if not debugging everything and not debugging specific category, LogPrint does nothing.
210210
if (setCategories.count(string("")) == 0 &&
211+
setCategories.count(string("1")) == 0 &&
211212
setCategories.count(string(category)) == 0)
212213
return false;
213214
}

0 commit comments

Comments
 (0)