Title: util.inspect({level: "info"}) exits the debug session · Issue #4440 · nodejs/node · GitHub
Open Graph Title: util.inspect({level: "info"}) exits the debug session · Issue #4440 · nodejs/node
X Title: util.inspect({level: "info"}) exits the debug session · Issue #4440 · nodejs/node
Description: When debugging in node.js 5.3.0 the script bug.js var util = require('util'); util.inspect({level: "info "}); console.log("Test"); with node debug bug.js, the debugging session exits. I tried the same in node.js 4.2.4 and it doesn't. Whe...
Open Graph Description: When debugging in node.js 5.3.0 the script bug.js var util = require('util'); util.inspect({level: "info "}); console.log("Test"); with node debug bug.js, the debugging session exits. I tried the s...
X Description: When debugging in node.js 5.3.0 the script bug.js var util = require('util'); util.inspect({level: "info "}); console.log("Test"); with node debug bug.js, the debugging ...
Opengraph URL: https://github.com/nodejs/node/issues/4440
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"util.inspect({level: \"info\"}) exits the debug session","articleBody":"When debugging in node.js 5.3.0 the script `bug.js`\n\n``` javascript\nvar util = require('util');\nutil.inspect({level: \"info \"});\nconsole.log(\"Test\");\n```\n\nwith `node debug bug.js`, the debugging session exits. I tried the same in node.js 4.2.4 and it doesn't. When debugging the difference in `lib/util.js`, line 324 in 5.3.0 looks like this:\n\n``` javascript\nvar promiseInternals = inspectPromise(value);\n```\n\nand line 319 in 4.2.4 looks like:\n\n``` javascript\nvar promiseInternals = value instanceof Promise \u0026\u0026 inspectPromise(value);\n```\n\nAs value is not an instance of Promise, `inspectPromise(value)` is called in 5.3.0. Then `inspectPromise` calls `ensureDebugIsInitialized()` which on the other hand calls `require('vm').runInDebugContext('Debug')`. This causes the debugging session to exit. The issue was tested in Ubuntu 14.04 LTS.\n","author":{"url":"https://github.com/learnerbyheart","@type":"Person","name":"learnerbyheart"},"datePublished":"2015-12-27T20:14:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":43},"url":"https://github.com/4440/node/issues/4440"}
| 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:1db17a4e-c00f-15df-1b4c-70a4bbe5e07f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BBEC:228D4:1252273:199865E:6A4EA2C6 |
| html-safe-nonce | a046006e302a77ce48a11750a4dbefd16944204868497d8ce82820d012b0254c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkVDOjIyOEQ0OjEyNTIyNzM6MTk5ODY1RTo2QTRFQTJDNiIsInZpc2l0b3JfaWQiOiI4MDQ2NTYzNDgwNzA5Mjc2MzU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 612dfa5ce9a4cb6a565291e8ba7b279a8d5123e3ef59abba1589d4fe50766535 |
| hovercard-subject-tag | issue:123994782 |
| 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/4440/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4f8f3839264d6e7318a7c4ad405ba30e0e4d33dba738f28b4fdaefbff386e0cf/nodejs/node/issues/4440 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4f8f3839264d6e7318a7c4ad405ba30e0e4d33dba738f28b4fdaefbff386e0cf/nodejs/node/issues/4440 |
| og:image:alt | When debugging in node.js 5.3.0 the script bug.js var util = require('util'); util.inspect({level: "info "}); console.log("Test"); with node debug bug.js, the debugging session exits. I tried the s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | learnerbyheart |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| 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 | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width