Title: Debugger's `list` command throws TypeError: Cannot read properties of null (reading 'list') · Issue #42775 · nodejs/node · GitHub
Open Graph Title: Debugger's `list` command throws TypeError: Cannot read properties of null (reading 'list') · Issue #42775 · nodejs/node
X Title: Debugger's `list` command throws TypeError: Cannot read properties of null (reading 'list') · Issue #42775 · nodejs/node
Description: Version v17.9.0 Platform No response Subsystem No response What steps will reproduce the bug? $ node inspect -e "const a = 1" debug> c debug> list() How often does it reproduce? Is there a required condition? No response What is the expe...
Open Graph Description: Version v17.9.0 Platform No response Subsystem No response What steps will reproduce the bug? $ node inspect -e "const a = 1" debug> c debug> list() How often does it reproduce? Is there a required...
X Description: Version v17.9.0 Platform No response Subsystem No response What steps will reproduce the bug? $ node inspect -e "const a = 1" debug> c debug> list() How often does it reproduce? Is ...
Opengraph URL: https://github.com/nodejs/node/issues/42775
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Debugger's `list` command throws TypeError: Cannot read properties of null (reading 'list')","articleBody":"### Version\r\n\r\nv17.9.0\r\n\r\n### Platform\r\n\r\n_No response_\r\n\r\n### Subsystem\r\n\r\n_No response_\r\n\r\n### What steps will reproduce the bug?\r\n```\r\n$ node inspect -e \"const a = 1\"\r\ndebug> c\r\ndebug> list()\r\n```\r\n\r\n### How often does it reproduce? Is there a required condition?\r\n\r\n_No response_\r\n\r\n### What is the expected behavior?\r\n\r\nDebugger should throw `ERR_DEBUGGER_ERROR` just like `sb()` command since the runtime context has been already destroyed.\r\n\r\n```\r\ndebug> list()\r\n> 1 const a = 1\r\ndebug> c\r\n\u003c Waiting for the debugger to disconnect...\r\n\u003c \r\ndebug> list()\r\nnode:internal/debugger/inspect_repl:362\r\n throw new ERR_DEBUGGER_ERROR('Requires execution to be paused');\r\n ^\r\ndebug> sb(1)\r\nnode:internal/debugger/inspect_repl:362\r\n throw new ERR_DEBUGGER_ERROR('Requires execution to be paused');\r\n ^\r\n```\r\n\r\n\r\n### What do you see instead?\r\n\r\n```\r\ndebug> list()\r\n> 1 const a = 1\r\ndebug> c\r\n\u003c Waiting for the debugger to disconnect...\r\n\u003c \r\ndebug> list()\r\nnode:internal/debugger/inspect_repl:638\r\n return selectedFrame.list(delta).then(null, (error) => {\r\n ^\r\n\r\nUncaught TypeError: Cannot read properties of null (reading 'list')\r\n at list (node:internal/debugger/inspect_repl:638:26)\r\n at REPL3:1:1\r\n at Script.runInContext (node:vm:139:12)\r\n at Object.runInContext (node:vm:289:6)\r\n at REPLServer.controlEval (node:internal/debugger/inspect_repl:578:25)\r\n at bound (node:domain:421:15)\r\n at REPLServer.runBound [as eval] (node:domain:432:12)\r\n at REPLServer.onLine (node:repl:893:10)\r\n at REPLServer.emit (node:events:527:28)\r\n at REPLServer.emit (node:domain:475:12)\r\ndebug> sb(1)\r\nnode:internal/debugger/inspect_repl:362\r\n throw new ERR_DEBUGGER_ERROR('Requires execution to be paused');\r\n ^\r\n```\r\n\r\n### Additional information\r\n\r\n_No response_","author":{"url":"https://github.com/cola119","@type":"Person","name":"cola119"},"datePublished":"2022-04-18T14:21:19Z","url":"https://github.com/nodejs/node/issues/42775"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:1e30b442-58ad-1654-ef86-c7cd0c9811ad |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A384:38C5CF:29EC532:352D0CA:6B018975 |
| html-safe-nonce | ade34d4489c4371664972f1b19aa980b6542b38f8cc2663b0a31dab20d16785c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzg0OjM4QzVDRjoyOUVDNTMyOjM1MkQwQ0E6NkIwMTg5NzUiLCJ2aXNpdG9yX2lkIjoiNDE1MjAwMTg4NTM0OTQ0ODA1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5d369bf800af34936ac314d6f6ee5501303deafb02f8a195e30e2c70a0f1fc24 |
| hovercard-subject-tag | issue:1207099002 |
| 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/42775/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6d6ecb6473f46c4e038a767e2ab2ca8c15e3d890ad45b01a632f4de75f77893b/nodejs/node/issues/42775 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6d6ecb6473f46c4e038a767e2ab2ca8c15e3d890ad45b01a632f4de75f77893b/nodejs/node/issues/42775 |
| og:image:alt | Version v17.9.0 Platform No response Subsystem No response What steps will reproduce the bug? $ node inspect -e "const a = 1" debug> c debug> list() How often does it reproduce? Is there a required... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cola119 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width