René's URL Explorer Experiment


Title: feat(inspector): serve source maps to DevTools via Network.loadNetwor… by edusperoni · Pull Request #1969 · NativeScript/android · GitHub

Open Graph Title: feat(inspector): serve source maps to DevTools via Network.loadNetwor… by edusperoni · Pull Request #1969 · NativeScript/android

X Title: feat(inspector): serve source maps to DevTools via Network.loadNetwor… by edusperoni · Pull Request #1969 · NativeScript/android

Description: …kResource Chrome DevTools no longer fetches external source maps itself when debugging remote targets: it issues Network.loadNetworkResource to the target and reads the result back through IO.read/IO.close. None of these embedder-side CDP domains are implemented by V8's inspector, so external source maps failed and apps had to fall back to bloated inline-source-map builds. Handle Network.loadNetworkResource natively: resolve the URL back to a file on disk and reply with a stream handle (success:false + net::ERR_FILE_NOT_FOUND when missing). Implement IO.read (1MB base64 chunks; eof only on a final empty read, since the frontend discards data accompanying eof) and IO.close. Reply with a JSON-RPC error for unsupported schemes (e.g. https) so DevTools keeps its existing fallback of fetching from the host. Rewrite sourceMapURL in outgoing Debugger.scriptParsed / Debugger.scriptFailedToParse events from relative/file:// URLs to a custom nsruntime:// scheme. DevTools hard-excludes file:, data: and devtools: URLs from loading through the target, so without the rewrite it would never send Network.loadNetworkResource and instead try (and fail) to read device files from the host machine. data: and http(s) URLs are left untouched, keeping inline source maps working. Allow opting out via nativescript.config.ts: android.disableSourceMapURLRewrite (or the same key at the top level). Serve these messages on the websocket read thread (new native handleMessageOnSocketThread), since the main-thread queue is unavailable exactly when DevTools needs source maps: the pause loop bypasses dispatchMessage and a busy isolate never drains the queue. The handler is V8-free and returns the response for Java to send on the receiving socket. Make Debugger.pause interrupt busy JS via Isolate::RequestInterrupt, skipped while already paused in the nested loop to avoid a spurious re-pause after resume. Vendor nlohmann/json v3.12.0 (third_party/json.hpp, header-only) for CDP message handling outside V8. Ports NativeScript/ios#385 and NativeScript/ios#378 to Android. Refs: nodejs/node#58077 Summary by CodeRabbit New Features Faster debugger messaging with immediate responses for some inspector requests. Improved DevTools integration: rewritten source-map URLs, on-device resource streaming (read/close), and network/file resource access via the debugger. Bug Fixes Cleans up streamed resources on disconnect and improves pause behavior to avoid nested pause issues.

Open Graph Description: …kResource Chrome DevTools no longer fetches external source maps itself when debugging remote targets: it issues Network.loadNetworkResource to the target and reads the result back through IO.read...

X Description: …kResource Chrome DevTools no longer fetches external source maps itself when debugging remote targets: it issues Network.loadNetworkResource to the target and reads the result back through IO.read...

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

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:3f8b97f5-da13-a73b-e5eb-35319cbe6579
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA3FE:23CF06:1CB4444:249CF5F:6B0148CF
html-safe-nonce2c3c30d52b653185278e4789887750ffd7136e8c497110e458c15a94e7a9c8c5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0ZFOjIzQ0YwNjoxQ0I0NDQ0OjI0OUNGNUY6NkIwMTQ4Q0YiLCJ2aXNpdG9yX2lkIjoiOTA4MTcwNzQwODU4OTQwODQ2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac713b843d374887ad688c814920e134fae49ad25eaab2fc196034edfaefdaa43f
hovercard-subject-tagpull_request:3850110763
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/1969/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:alt…kResource Chrome DevTools no longer fetches external source maps itself when debugging remote targets: it issues Network.loadNetworkResource to the target and reads the result back through IO.read...
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/1969/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fandroid%2Fpull%2F1969%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%2F1969%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/1969/files
Reloadhttps://github.com/NativeScript/android/pull/1969/files
Reloadhttps://github.com/NativeScript/android/pull/1969/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
rigor789https://github.com/rigor789
mainhttps://github.com/NativeScript/android/tree/main
feat/source-map-handlinghttps://github.com/NativeScript/android/tree/feat/source-map-handling
Conversation 4 https://github.com/NativeScript/android/pull/1969
Commits 2 https://github.com/NativeScript/android/pull/1969/commits
Checks 7 https://github.com/NativeScript/android/pull/1969/checks
Files changed https://github.com/NativeScript/android/pull/1969/files
Please reload this pagehttps://github.com/NativeScript/android/pull/1969/files
feat(inspector): serve source maps to DevTools via Network.loadNetwor… https://github.com/NativeScript/android/pull/1969/files#top
Show all changes 2 commits https://github.com/NativeScript/android/pull/1969/files
f45830a feat(inspector): serve source maps to DevTools via Network.loadNetwor… edusperoni Jun 11, 2026 https://github.com/NativeScript/android/pull/1969/commits/f45830ad93de8ab8669fbd80b52a8c689be11d59
7a6e3d9 fix(inspector): clear resource streams on disconnect to prevent stale… edusperoni Jun 11, 2026 https://github.com/NativeScript/android/pull/1969/commits/7a6e3d91c94a0a0c6fb0337ed3c1e9ef05960c48
Clear filters https://github.com/NativeScript/android/pull/1969/files
Please reload this pagehttps://github.com/NativeScript/android/pull/1969/files
Please reload this pagehttps://github.com/NativeScript/android/pull/1969/files
AndroidJsV8Inspector.java https://github.com/NativeScript/android/pull/1969/files#diff-a5afbe4ec69ac9ea38c2171be047cf8d6d12f50fd458dd5417b1683cc185301e
JsV8InspectorClient.cpp https://github.com/NativeScript/android/pull/1969/files#diff-7cc5549c646c336c9433ef2829baa891d29a8322a7043780b8bbcbdb402daacf
JsV8InspectorClient.h https://github.com/NativeScript/android/pull/1969/files#diff-468b021140a72500a8ff6ccc1cd9a05b82beaaf8b46985b8225a87443b6277ad
com_tns_AndroidJsV8Inspector.cpp https://github.com/NativeScript/android/pull/1969/files#diff-9d6d2adee996b6d1d0e1771c5a2ef0632d534072524c2f6ac8a0dc5ed60d5a51
json.hpp https://github.com/NativeScript/android/pull/1969/files#diff-88d70326013a20f9077e62fc77f17efe6840470fdff70c0df9f9036535e8e7af
test-app/app/src/main/java/com/tns/AndroidJsV8Inspector.javahttps://github.com/NativeScript/android/pull/1969/files#diff-a5afbe4ec69ac9ea38c2171be047cf8d6d12f50fd458dd5417b1683cc185301e
View file https://github.com/NativeScript/android/blob/7a6e3d91c94a0a0c6fb0337ed3c1e9ef05960c48/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/1969/{{ revealButtonHref }}
https://github.com/NativeScript/android/pull/1969/files#diff-a5afbe4ec69ac9ea38c2171be047cf8d6d12f50fd458dd5417b1683cc185301e
https://github.com/NativeScript/android/pull/1969/files#diff-a5afbe4ec69ac9ea38c2171be047cf8d6d12f50fd458dd5417b1683cc185301e
https://github.com/NativeScript/android/pull/1969/files#diff-a5afbe4ec69ac9ea38c2171be047cf8d6d12f50fd458dd5417b1683cc185301e
https://github.com/NativeScript/android/pull/1969/files#diff-a5afbe4ec69ac9ea38c2171be047cf8d6d12f50fd458dd5417b1683cc185301e
Please reload this pagehttps://github.com/NativeScript/android/pull/1969/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.