From 3d841fe20d732111094c3f62febd5a6b8b483b91 Mon Sep 17 00:00:00 2001 From: Eugene Ostroukhov Date: Fri, 26 Jul 2019 10:40:54 -0700 Subject: inspector: new API - Session.connectToMainThread This API is designed to enable worker threads use Inspector protocol on main thread (and other workers through NodeWorker domain). Note that worker can cause dead lock by suspending itself. I will work on a new API that will allow workers to be hidden from the inspector. Fixes: https://github.com/nodejs/node/issues/28828 PR-URL: https://github.com/nodejs/node/pull/28870 Reviewed-By: Aleksei Koziatinskii Reviewed-By: James M Snell Reviewed-By: Benjamin Gruenbaum --- doc/api/errors.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/api/errors.md') diff --git a/doc/api/errors.md b/doc/api/errors.md index d01b763f89..baa75a21c8 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -1215,6 +1215,12 @@ The `inspector` module is not available for use. While using the `inspector` module, an attempt was made to use the inspector before it was connected. + +### ERR_INSPECTOR_NOT_WORKER + +An API was called on the main thread that can only be used from +the worker thread. + ### ERR_INVALID_ADDRESS_FAMILY -- cgit v1.2.3