Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2377aec

Browse filesBrowse files
addaleaxtargos
authored andcommitted
src: fix debugging for multiple categories
Fix parsing of e.g. `NODE_DEBUG_NATIVE=worker,messaging`. PR-URL: #21422 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent e7776c6 commit 2377aec
Copy full SHA for 2377aec

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎src/env.cc‎

Copy file name to clipboardExpand all lines: src/env.cc
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ void Environment::set_debug_categories(const std::string& cats, bool enabled) {
537537
if (comma_pos == std::string::npos)
538538
break;
539539
// Use everything after the `,` as the list for the next iteration.
540-
debug_categories = debug_categories.substr(comma_pos);
540+
debug_categories = debug_categories.substr(comma_pos + 1);
541541
}
542542
}
543543

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.