diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-06-20 17:13:04 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-06-20 22:48:54 +0200 |
commit | 7aa95670a1742df8a84ea5ecba969c11f268d400 (patch) | |
tree | bcbd17d525a58ba20a91c7b92e5bb242cb29ad71 /src | |
parent | 0eb8a8cb12ec53dd0ef04bb80d839212a508250c (diff) | |
download | android-node-v8-7aa95670a1742df8a84ea5ecba969c11f268d400.tar.gz android-node-v8-7aa95670a1742df8a84ea5ecba969c11f268d400.tar.bz2 android-node-v8-7aa95670a1742df8a84ea5ecba969c11f268d400.zip |
src: fix debugging for multiple categories
Fix parsing of e.g. `NODE_DEBUG_NATIVE=worker,messaging`.
PR-URL: https://github.com/nodejs/node/pull/21422
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/env.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/env.cc b/src/env.cc index 6f6e9f3920..2236893dd7 100644 --- a/src/env.cc +++ b/src/env.cc @@ -537,7 +537,7 @@ void Environment::set_debug_categories(const std::string& cats, bool enabled) { if (comma_pos == std::string::npos) break; // Use everything after the `,` as the list for the next iteration. - debug_categories = debug_categories.substr(comma_pos); + debug_categories = debug_categories.substr(comma_pos + 1); } } |