René's URL Explorer Experiment


Title: feat(inspector): attach Chrome DevTools to Web Worker isolates by edusperoni · Pull Request #1973 · NativeScript/android · GitHub

Open Graph Title: feat(inspector): attach Chrome DevTools to Web Worker isolates by edusperoni · Pull Request #1973 · NativeScript/android

X Title: feat(inspector): attach Chrome DevTools to Web Worker isolates by edusperoni · Pull Request #1973 · NativeScript/android

Description: Workers were invisible to the debugger: the inspector only served the main isolate and even dropped worker console output on the floor. DevTools discovers extra isolates through the Target domain with flat-session multiplexing, so implement that surface in the runtime: Add WorkerInspectorClient: a per-worker V8Inspector + session that lives entirely on the worker's thread. Incoming CDP messages queue through an eventfd on the worker's ALooper (the same mechanism as the worker message inbox); while paused at a breakpoint a nested loop on the worker thread pumps the same queue without re-entering the looper, so postMessage deliveries stay queued during a pause, matching Chrome's semantics. Turn JsV8InspectorClient into the root session + router: handle Target.setAutoAttach natively on the socket thread (announce workers via Target.attachedToTarget, detach on death), route messages carrying a top-level sessionId to the worker's thread directly from the socket thread, and make the frontend sender thread-safe. Routing off the socket thread means a worker stays debuggable while the main isolate is paused, and vice versa. Debugger.pause for a busy worker uses RequestInterrupt keyed by workerId, so a late-firing interrupt after worker death is a no-op; it is skipped while that worker is already paused, avoiding a spurious re-pause after resume (same guard as the main isolate). Serve Network.loadNetworkResource and IO.read/IO.close on the socket thread for any session (sessionId echoed), so worker source maps load too, and apply the nsruntime:// sourceMapURL rewrite to worker Debugger.scriptParsed events. Route worker console.* to the worker's own inspector and deliver through V8ConsoleMessageStorage::addMessage instead of the live-only runtime agent path: messages logged before the frontend attaches are stored and replayed as console history. Applies to the main isolate as well. Name execution contexts ("main" / worker script url) so the DevTools console context selector rows are labeled and selectable. Worker lifecycle: the inspector is created on the worker thread before the script runs (debug builds only), terminate() kicks a paused worker out of its nested pause loop, teardown unregisters the target before the isolate is disposed, and frontend reconnects reset worker sessions (ordered before the main-isolate Locker so workers recover even if the main isolate is paused). Make isConnected_ atomic: worker threads now read it while the main thread writes the adjacent bitfield flags. waitForDebuggerOnStart (pause new workers before their first line) is left as future work; workers announce waitingForDebugger: false. Ports NativeScript/ios#386 to Android. Summary by CodeRabbit New Features Added worker-side V8 inspector support with DevTools-ready session/target routing. Worker console output is now forwarded into the inspector for visibility. Bug Fixes Improved socket-thread message handling to send only when a non-empty response is produced by the fast path. Strengthened thread-safety for inspector connections and singleton initialization. Refined pause/reset behavior and worker session acknowledgment handling. Chores Enabled additional inspector sources for debug builds.

Open Graph Description: Workers were invisible to the debugger: the inspector only served the main isolate and even dropped worker console output on the floor. DevTools discovers extra isolates through the Target domain w...

X Description: Workers were invisible to the debugger: the inspector only served the main isolate and even dropped worker console output on the floor. DevTools discovers extra isolates through the Target domain w...

Opengraph URL: https://github.com/NativeScript/android/pull/1973

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:af720303-65d1-aff6-397e-5402f84e9a8a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9EE4:2463BD:1AF05C9:227361F:6B0140ED
html-safe-noncedc58e62c13bc863cc51e3756638462f4c46a3d6ccb22ba88937f905de523e9f6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUU0OjI0NjNCRDoxQUYwNUM5OjIyNzM2MUY6NkIwMTQwRUQiLCJ2aXNpdG9yX2lkIjoiMjk2OTcxMTMyMTM1ODA5MDQ3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac75274bccdcc7b63668a5b544f2bf554fd1304f30f41bb3dc2680e08a4514c80f
hovercard-subject-tagpull_request:3857647807
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/NativeScript/android/pull/1973/files
twitter:imagehttps://avatars.githubusercontent.com/u/4061767?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/4061767?s=400&v=4
og:image:altWorkers were invisible to the debugger: the inspector only served the main isolate and even dropped worker console output on the floor. DevTools discovers extra isolates through the Target domain w...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/NativeScript/android git https://github.com/NativeScript/android.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id29137950
octolytics-dimension-repository_nwoNativeScript/android
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id29137950
octolytics-dimension-repository_network_root_nwoNativeScript/android
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NativeScript/android/pull/1973/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fandroid%2Fpull%2F1973%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fandroid%2Fpull%2F1973%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=NativeScript%2Fandroid
Reloadhttps://github.com/NativeScript/android/pull/1973/files
Reloadhttps://github.com/NativeScript/android/pull/1973/files
Reloadhttps://github.com/NativeScript/android/pull/1973/files
NativeScripthttps://github.com/NativeScript
androidhttps://github.com/NativeScript/android
Codehttps://github.com/NativeScript/android
Issues106 (106)https://github.com/NativeScript/android/issues
Pull requests24 (24)https://github.com/NativeScript/android/pulls
Actionshttps://github.com/NativeScript/android/actions
Projectshttps://github.com/NativeScript/android/projects
Wikihttps://github.com/NativeScript/android/wiki
Security and qualityhttps://github.com/NativeScript/android/security
Insightshttps://github.com/NativeScript/android/insights
Sign up for GitHub https://github.com/signup?return_to=%2FNativeScript%2Fandroid%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FNativeScript%2Fandroid%2Fissues%2Fnew%2Fchoose
NathanWalkerhttps://github.com/NathanWalker
mainhttps://github.com/NativeScript/android/tree/main
feat/worker-inspectorhttps://github.com/NativeScript/android/tree/feat/worker-inspector
Conversation 4 https://github.com/NativeScript/android/pull/1973
Commits 2 https://github.com/NativeScript/android/pull/1973/commits
Checks 7 https://github.com/NativeScript/android/pull/1973/checks
Files changed https://github.com/NativeScript/android/pull/1973/files
Please reload this pagehttps://github.com/NativeScript/android/pull/1973/files
feat(inspector): attach Chrome DevTools to Web Worker isolates https://github.com/NativeScript/android/pull/1973/files#top
Show all changes 2 commits https://github.com/NativeScript/android/pull/1973/files
2656b65 feat(inspector): attach Chrome DevTools to Web Worker isolates edusperoni Jun 12, 2026 https://github.com/NativeScript/android/pull/1973/commits/2656b65c94d210307448d8cc1da2a1137bfd6613
13ae257 fix: GetInstance race condition and prevent unnecessary locking edusperoni Jun 15, 2026 https://github.com/NativeScript/android/pull/1973/commits/13ae25714f8502b8f075c9f0b6a81513f19c2717
Clear filters https://github.com/NativeScript/android/pull/1973/files
Please reload this pagehttps://github.com/NativeScript/android/pull/1973/files
Please reload this pagehttps://github.com/NativeScript/android/pull/1973/files
AndroidJsV8Inspector.java https://github.com/NativeScript/android/pull/1973/files#diff-a5afbe4ec69ac9ea38c2171be047cf8d6d12f50fd458dd5417b1683cc185301e
CMakeLists.txt https://github.com/NativeScript/android/pull/1973/files#diff-9aa48152a82c07a60ab6e09923a9b266e2985f78e579653848df730cd8ec5e4c
JsV8InspectorClient.cpp https://github.com/NativeScript/android/pull/1973/files#diff-7cc5549c646c336c9433ef2829baa891d29a8322a7043780b8bbcbdb402daacf
JsV8InspectorClient.h https://github.com/NativeScript/android/pull/1973/files#diff-468b021140a72500a8ff6ccc1cd9a05b82beaaf8b46985b8225a87443b6277ad
WorkerInspectorClient.cpp https://github.com/NativeScript/android/pull/1973/files#diff-3b7cfdba262c67e16167468c464564cdf766c2b30d662e2588728897038a0c99
WorkerInspectorClient.h https://github.com/NativeScript/android/pull/1973/files#diff-2c771616a3286c8b34cb5ad61f4df81eb7dbccd076a96ed637f32a892aa865bc
WorkerWrapper.cpp https://github.com/NativeScript/android/pull/1973/files#diff-1344a5b85b9f266cab5024f2d52426ba56e3832c074d2c139fb560bcaaabfdc7
WorkerWrapper.h https://github.com/NativeScript/android/pull/1973/files#diff-94a94304b1fb4dd29852688ec48aa5583d6b2d6017d149c731cf5f191bf08a2e
com_tns_AndroidJsV8Inspector.cpp https://github.com/NativeScript/android/pull/1973/files#diff-9d6d2adee996b6d1d0e1771c5a2ef0632d534072524c2f6ac8a0dc5ed60d5a51
test-app/app/src/main/java/com/tns/AndroidJsV8Inspector.javahttps://github.com/NativeScript/android/pull/1973/files#diff-a5afbe4ec69ac9ea38c2171be047cf8d6d12f50fd458dd5417b1683cc185301e
View file https://github.com/NativeScript/android/blob/13ae25714f8502b8f075c9f0b6a81513f19c2717/test-app/app/src/main/java/com/tns/AndroidJsV8Inspector.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/android/pull/1973/{{ revealButtonHref }}
https://github.com/NativeScript/android/pull/1973/files#diff-a5afbe4ec69ac9ea38c2171be047cf8d6d12f50fd458dd5417b1683cc185301e
https://github.com/NativeScript/android/pull/1973/files#diff-a5afbe4ec69ac9ea38c2171be047cf8d6d12f50fd458dd5417b1683cc185301e
test-app/runtime/CMakeLists.txthttps://github.com/NativeScript/android/pull/1973/files#diff-9aa48152a82c07a60ab6e09923a9b266e2985f78e579653848df730cd8ec5e4c
View file https://github.com/NativeScript/android/blob/13ae25714f8502b8f075c9f0b6a81513f19c2717/test-app/runtime/CMakeLists.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/android/pull/1973/{{ revealButtonHref }}
https://github.com/NativeScript/android/pull/1973/files#diff-9aa48152a82c07a60ab6e09923a9b266e2985f78e579653848df730cd8ec5e4c
https://github.com/NativeScript/android/pull/1973/files#diff-9aa48152a82c07a60ab6e09923a9b266e2985f78e579653848df730cd8ec5e4c
Please reload this pagehttps://github.com/NativeScript/android/pull/1973/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.