From a7aca37f9b8ec4714648e88f5964eb8b13755535 Mon Sep 17 00:00:00 2001 From: Charles Gould Date: Fri, 15 May 2020 17:54:26 -0500 Subject: [PATCH] Print enabled debug categories --- src/fish.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/fish.cpp b/src/fish.cpp index 73a35f8a3..28184bd27 100644 --- a/src/fish.cpp +++ b/src/fish.cpp @@ -302,6 +302,11 @@ static int fish_parse_opt(int argc, char **argv, fish_cmd_opts_t *opts) { } else { activate_flog_categories_by_pattern(str2wcstring(optarg)); } + for (auto cat : get_flog_categories()) { + if (cat->enabled) { + printf("Debug enabled for category: %ls\n", cat->name); + } + } break; } case 'o': {