diagnosing-stacktrace-symbolication
यह क्या करती है
यह स्किल तब काम आती है जब त्रुटि रिपोर्ट में मिनिफ़ाइड या अस्पष्ट कोड दिखता है जिसे पढ़ा नहीं जा सकता। यह उन डेवलपर्स के लिए है जिन्हें PostHog में पढ़ने लायक फ़ाइल नाम और लाइन नंबर चाहिए।
कब इस्तेमाल करें
- ✓जब आपकी त्रुटि रिपोर्ट में पढ़ने लायक फ़ाइल और लाइन नंबर की जगह मिनिफ़ाइड कोड नाम दिखें।
- ✓जब React Native, Android या iOS त्रुटि के स्टैक ट्रेस वापस पढ़ने लायक कोड में नहीं बदल रहे हों।
- ✓जब आपने source maps या symbol फ़ाइलें अपलोड की हों, फिर भी त्रुटियाँ अपठनीय दिखें।
Skill का लिंक
https://github.com/PostHog/posthog/blob/master/products/error_tracking/skills/diagnosing-stacktrace-symbolication/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरी PostHog में JavaScript त्रुटियाँ मिनिफ़ाइड कोड दिखा रही हैं। मैं उन्हें फिर से पढ़ने लायक कैसे बनाऊँ?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह क्रम से बिल्ड सेटअप, बनी हुई symbol फ़ाइलें, PostHog पर अपलोड, और पकड़ी गई त्रुटि जाँचती है। ज़्यादातर समस्याएँ इन्हीं चार चरणों में से किसी एक में मिलती हैं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Diagnosing stack-trace symbolication
Symbolication is the cross-platform name for what JavaScript source-map lookup, Hermes function-offset resolution, Proguard / R8 demangling, and dSYM address-to-line lookup all do — turn a minified or obfuscated frame back into a readable file, function, and line.
Work through the user's build and PostHog symbol sets as one pipeline: build config -> generated symbol artifacts (JavaScript source maps, Hermes maps, Proguard mappings, or dSYM bundles) -> uploaded symbol set in PostHog -> captured error frame. Most failures become obvious once those four pieces are checked in order.
Platforms
| Platform | Symbol-data type | Reference |
|---|---|---|
| JavaScript / TypeScript web | source-and-map | javascript.md |
| React Native (Hermes) | hermes | coming soon |
| Android (Proguard / R8) | proguard | coming soon |
| iOS / macOS (dSYM) | apple-dsym | coming soon |
Step 3 of the workflow (symbol-set lookup in PostHog) is identical across platforms — posthog-cli symbol-sets extract handles all four container types. Steps 1, 2, and the platform-specific failure modes live in the
per-platform reference.
Workflow
Step 1 - Find how symbol data is produced and uploaded
Look at the app repo's build scripts and PostHog upload config. Confirm which PostHog package handles the upload
(@posthog/rollup-plugin, @posthog/webpack-plugin, @posthog/nextjs-config, @posthog/nuxt, or direct
posthog-cli) and which directory or asset it processes. See the platform reference for build-tool-specific
config inspection.
For debugging, prefer a build where symbol artifacts remain on disk after upload so you can compare local artifacts against what PostHog received. JavaScript example with the Vite plugin (the platform reference covers the equivalent setting for other build tools):
sourcemaps: {
enabled: true,
deleteAfterUpload: false,
}
Step 2 - Build and inspect local artifacts
Run the production build that uploads symbols, then inspect the emitted files locally. The exact files and helper invocation differ per platform — see the platform reference for the helper command, expected file shape, and common build-time pitfalls (notably empty-mappings false positives that look like upload bugs but are actually bundler config issues).
If local artifacts already look wrong, fix the build before debugging the PostHog upload.
Step 3 - Check symbol sets in PostHog
Look up the symbol set whose ref matches the captured frame's chunk_id using the dedicated MCP tools — they
handle auth, project scoping, and pagination automatically:
posthog:error-tracking-symbol-sets-listwithref=<chunk_id>returns the matching row.posthog:error-tracking-symbol-sets-retrievewith the ID returns the same shape (and confirms permissions).posthog:error-tracking-symbol-sets-download-retrievereturns a one-hour presigned URL pointing at the uploaded symbol-data file. Download it immediately; do not echo the URL back unless the user explicitly asks.
If MCP access is not available, the same data is in Project settings > Error tracking > Symbol sets in the PostHog UI.
Interpret the row:
refmust match the captured framechunk_id.last_usedupdating means PostHog found and loaded that symbol set. It does not guarantee the frame resolved.has_uploaded_file: falsemeans the upload did not complete.- A non-null
failure_reasonmeans PostHog could not parse or load the uploaded symbol data.
The downloaded file is a PostHog symbol-data container (compressed Rust-encoded payload), not plain JSON. Extract
it with posthog-cli:
posthog-cli symbol-sets extract symbolset.bin -o ./extracted
# or, without installing globally:
# npx @posthog/cli symbol-sets extract symbolset.bin -o ./extracted
# bunx @posthog/cli symbol-sets extract symbolset.bin -o ./extracted
posthog-cli symbol-sets extract handles all four symbol-set types (source-and-map, hermes, proguard, dSYM) and
writes the extracted files into the output directory. Once extracted, summarize using the platform reference's
helper.
Step 4 - Compare local, uploaded, and served
अक्सर पूछे जाने वाले सवाल
यह किन प्लेटफ़ॉर्म को कवर करती है?
यह वेब के लिए JavaScript और TypeScript को पूरी विस्तार से कवर करती है। React Native, Android और iOS का ज़िक्र है, पर उनके गाइड अभी आने वाले हैं।
symbol set क्या है?
यह PostHog पर अपलोड की गई फ़ाइल है जो संकलित कोड को मूल नामों और लाइन नंबरों से जोड़ती है।
अगर मेरा प्लेटफ़ॉर्म सूची में न हो तो?
स्किल बताती है कि दूसरे प्लेटफ़ॉर्म के गाइड जल्द आएँगे, इसलिए आपको शायद केवल सामान्य चरण मिलें।
जानकारी
लेखक का मूल विवरण
Help users debug PostHog Error Tracking stack-trace symbolication for any supported platform — JavaScript/TypeScript web, React Native (Hermes), Android (Proguard / R8), or iOS / macOS (dSYM). The PostHog symbol-set lookup flow is universal across platforms; build-tool and artifact details live in per-platform references (JavaScript is fleshed out, others come as we encounter them). Use when stack frames stay minified or obfuscated after symbols are uploaded, PostHog symbol sets show last_used but frames are not readable, chunk IDs or dSYM UUIDs do not match, "Token not found" appears, uploade
repo: PostHog/posthog
लोकप्रियता
- GitHub स्टार
- 41k
- रैंकिंग में स्थान
- #6868
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
depot-ci
41kयह आपके एजेंट को Depot CI वर्कफ़्लो सेट अप करने, चलाने और माइग्रेट करने में मदद करती है, साथ ही रन के लॉग पढ़ने में।
depot-container-builds
41kयह आपके एजेंट को Depot के रिमोट बिल्डर पर Docker इमेज बनाने में मदद करती है, जिसमें मल्टी-प्लेटफ़ॉर्म इमेज और बिल्ड सुधार शामिल हैं।
depot-github-runners
41kयह आपके एजेंट को GitHub Actions जॉब Depot के मैनेज्ड रनर पर ले जाने, रनर का साइज़ और लेबल चुनने, और रनर सेटअप की समस्याएँ ठीक करने में मदद करती है।
editing-agents-md
41kयह आपके एजेंट को तय करने में मदद करती है कि कोई नियम AGENTS.md या CLAUDE.md में जाए या नहीं, और उसे ऐसे लिखे कि फ़ाइल भारी न हो।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।