Title: inspector.open(0, undefined, /* wait */true) won't allow communicating inspector.url() · Issue #28663 · nodejs/node · GitHub
Open Graph Title: inspector.open(0, undefined, /* wait */true) won't allow communicating inspector.url() · Issue #28663 · nodejs/node
X Title: inspector.open(0, undefined, /* wait */true) won't allow communicating inspector.url() · Issue #28663 · nodejs/node
Description: I'd like to open the first available debugging port and wait for client to attach before I continue execution, so I do: inspector.open(0, undefined, /* wait */ true); This results in a logical deadlock though: in order to get the inspect...
Open Graph Description: I'd like to open the first available debugging port and wait for client to attach before I continue execution, so I do: inspector.open(0, undefined, /* wait */ true); This results in a logical dead...
X Description: I'd like to open the first available debugging port and wait for client to attach before I continue execution, so I do: inspector.open(0, undefined, /* wait */ true); This results in a logical ...
Opengraph URL: https://github.com/nodejs/node/issues/28663
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"inspector.open(0, undefined, /* wait */true) won't allow communicating inspector.url()","articleBody":"I'd like to open the first available debugging port and wait for client to attach before I continue execution, so I do:\r\n\r\n```js\r\ninspector.open(0, undefined, /* wait */ true);\r\n```\r\n\r\nThis results in a logical deadlock though: in order to get the `inspector.url()`, I need to continue execution. But execution only continues when connection is established over that exact URL I can't get. It makes me think that `inspector.open` does not really make sense with the `wait === true`.\r\n\r\nCould this API be changed to something like below instead?\r\n\r\n```js\r\ninspector.open(0, undefined, true, ({url}) =\u003e {\r\n clientPipe.send(url); // \u003c-- reports url\r\n});\r\n// \u003c-- blocks execution.\r\n```\r\n\r\n@eugeneo, @ak239 ","author":{"url":"https://github.com/pavelfeldman","@type":"Person","name":"pavelfeldman"},"datePublished":"2019-07-13T05:25:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/28663/node/issues/28663"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fc61b115-a9da-9157-fc68-7694421dbcde |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E738:348BD7:42E7FD2:5D94B19:6A4F6870 |
| html-safe-nonce | ea97d3e471408b5ddc3a9f8ce77a2a8680e28f4b32bb928f937465de256d7c9c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzM4OjM0OEJENzo0MkU3RkQyOjVEOTRCMTk6NkE0RjY4NzAiLCJ2aXNpdG9yX2lkIjoiMzc3NjMwMjk1ODMwOTc2MzE4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 510435113e1aa3697a8be82000ea1caed11e9489a7032735cc4c7ed4ff330d63 |
| hovercard-subject-tag | issue:467673967 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/28663/issue_layout |
| twitter:image | https://opengraph.githubassets.com/60ed1ac07f51e2f42a2e23f7eefde539168e3dbc21566984aa6a6045282788cb/nodejs/node/issues/28663 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/60ed1ac07f51e2f42a2e23f7eefde539168e3dbc21566984aa6a6045282788cb/nodejs/node/issues/28663 |
| og:image:alt | I'd like to open the first available debugging port and wait for client to attach before I continue execution, so I do: inspector.open(0, undefined, /* wait */ true); This results in a logical dead... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pavelfeldman |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width