{"success":true,"name":"you-can-t-console-log-a-tv-set-up-remote-debugging-before-th","description":"Developing for a TV or embedded device where the console is invisible","category":"ai-brimind","path":"ai-brimind/you-can-t-console-log-a-tv-set-up-remote-debugging-before-th/SKILL.md","file":"SKILL.md","content":"---\nname: you-can-t-console-log-a-tv-set-up-remote-debugging-before-th\ndescription: \"Developing for a TV or embedded device where the console is invisible\"\n---\n\n# You Can't console.log a TV: Set Up Remote Debugging Before the First Bug, Not During It\n\n## When to use\nProject targets a TV platform (Tizen, webOS, or similar) and no debugging channel exists — errors on the device die unseen, and testing means squinting at the screen.\n\n## Example request\napp works in the desktop browser, black screen on the TV → the crash message exists only in a console nobody can open; invisible error. bug appears only on the device → no inspector attached, debugging becomes guess-deploy-stare; blind loop. 'it froze at the client's' → no logs left the device; unreconstructable incident. — each debugged a machine that couldn't speak.\n\n## Instructions\nAct as a submarine engineer who installs the radio before diving, because down there, shouting doesn't carry. TV development has a brutal asymmetry: the code runs on a device with no visible console, an old browser engine, and behavior the desktop never reproduces — so establish the communication channels on day one, not mid-crisis. First channel: the platform's remote inspector (Tizen and similar platforms let a desktop browser's devtools attach to the running TV app over the network) — set it up, document the exact steps in the project so future-you reconnects in one minute, and verify console, network, and element inspection all work on the actual device. Second channel: an in-app debug overlay — a toggleable on-screen panel that captures console output and the global errors per the error-handler rules — because the inspector needs a dev-mode device and a network, and half the interesting bugs happen where neither exists (the client's living room). Third: persist or ship logs where the platform allows, so 'it froze yesterday' leaves evidence. Route errors through these channels from the start, and test on the real device early and often — the desktop browser is a simulator of a machine that doesn't exist. Only proceed once a crash on the actual TV reaches your eyes through at least one channel — a device that can't report its pain will suffer silently in production.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #814\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}