Title: Extension crashes on recent VS Code versions: util.isNullOrUndefined is not a function · Issue #25 · github0null/stm8-debug · GitHub
Open Graph Title: Extension crashes on recent VS Code versions: util.isNullOrUndefined is not a function · Issue #25 · github0null/stm8-debug
X Title: Extension crashes on recent VS Code versions: util.isNullOrUndefined is not a function · Issue #25 · github0null/stm8-debug
Description: The extension crashes on startup with recent versions of VS Code. Extension Host reports: TypeError: util.isNullOrUndefined is not a function This is caused by util.isNullOrUndefined(), which has been deprecated for years and removed fro...
Open Graph Description: The extension crashes on startup with recent versions of VS Code. Extension Host reports: TypeError: util.isNullOrUndefined is not a function This is caused by util.isNullOrUndefined(), which has b...
X Description: The extension crashes on startup with recent versions of VS Code. Extension Host reports: TypeError: util.isNullOrUndefined is not a function This is caused by util.isNullOrUndefined(), which has b...
Opengraph URL: https://github.com/github0null/stm8-debug/issues/25
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Extension crashes on recent VS Code versions: util.isNullOrUndefined is not a function","articleBody":"The extension crashes on startup with recent versions of VS Code.\n\nExtension Host reports:\n\n```\nTypeError: util.isNullOrUndefined is not a function\n```\n\nThis is caused by `util.isNullOrUndefined()`, which has been deprecated for years and removed from the Node.js runtime bundled with recent VS Code releases.\n\nThe offending code is here:\n\nhttps://github.com/github0null/stm8-debug/blob/db7d05dcac8598b2c7c3567b6c6471a62d8ef29d/src/DebugAdapter.ts#L922\n\nCurrent code:\n\n```ts\nif (util.isNullOrUndefined(frame.file) && frame.address) {\n```\n\nReplace it with:\n\n```ts\nif (frame.file == null && frame.address) {\n```\n\nor equivalently:\n\n```ts\nif ((frame.file === null || frame.file === undefined) && frame.address) {\n```\n\nI tested this fix on v0.3.0+\nVisual Studio Code 1.129.0\nWindows 11\n\n### Workaround\n\nIf the project is no longer maintained, the installed extension can be patched manually.\n\nEdit:\n\n```\n%USERPROFILE%\\.vscode\\extensions\\cl.stm8-debug-\u003cversion>\\dist\\extension.js\n```\n\nReplace:\n\n```js\nif(p.isNullOrUndefined(t.file)&&t.address)\n```\n\nwith:\n\n```js\nif(t.file==null&&t.address)\n```\n\nSave the file and restart VS Code.\n\nThis fixes the extension for recent versions of VS Code.","author":{"url":"https://github.com/yubedev","@type":"Person","name":"yubedev"},"datePublished":"2026-08-02T16:25:55Z","url":"https://github.com/github0null/stm8-debug/issues/25"}
| 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:0a1bcc81-f979-7f19-28ae-493062d14fd0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D472:2A7C1C:8B9AC9:B7D015:6B01B0D9 |
| html-safe-nonce | 53403e9b303f461b885fb749b78dbc97b52055e11f547aee12dc2933595d094c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDcyOjJBN0MxQzo4QjlBQzk6QjdEMDE1OjZCMDFCMEQ5IiwidmlzaXRvcl9pZCI6IjYxNDk3MDg0NTczOTEwMTAwMDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9f6f852fab19a7b8d5ea56affed33f69d2c583629101a71b6310bdb18e233ab6 |
| hovercard-subject-tag | issue:5043402836 |
| 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/github0null/stm8-debug/25/issue_layout |
| twitter:image | https://opengraph.githubassets.com/203d6d81aa1b7230566290a4fbccd19cafe617c88afc62b5d2997a0f36e7b0aa/github0null/stm8-debug/issues/25 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/203d6d81aa1b7230566290a4fbccd19cafe617c88afc62b5d2997a0f36e7b0aa/github0null/stm8-debug/issues/25 |
| og:image:alt | The extension crashes on startup with recent versions of VS Code. Extension Host reports: TypeError: util.isNullOrUndefined is not a function This is caused by util.isNullOrUndefined(), which has b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | yubedev |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/github0null/stm8-debug git https://github.com/github0null/stm8-debug.git |
| octolytics-dimension-user_id | 43022536 |
| octolytics-dimension-user_login | github0null |
| octolytics-dimension-repository_id | 262808484 |
| octolytics-dimension-repository_nwo | github0null/stm8-debug |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 262808484 |
| octolytics-dimension-repository_network_root_nwo | github0null/stm8-debug |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width