src: add PrintLibuvHandleInformation debug helper

This function is not only helpful for debugging crashes,
but can also be used as an ad-hoc debugging statement.

PR-URL: https://github.com/nodejs/node/pull/25905
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Anna Henningsen committed 2019-02-05 21:53:18 +01:00
1 parent 2ed556c11f
commit 46d9573c68
3 files changed
+26 -13

No files matched your search

+1 -1
View File
@@ -89,7 +89,7 @@ if (process.argv[2] === 'child') {
switch (state) {
case 'initial':
assert(/^uv loop at \[.+\] has active handles$/.test(line), line);
assert(/^uv loop at \[.+\] has \d+ active handles$/.test(line), line);
state = 'handle-start';
break;
case 'handle-start':