debug-remote

Specialist in debugging TV apps remotely (logs, telemetry).

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "debug-remote" with this command: npx skills add dbobkov245-source/pwa-torserve/dbobkov245-source-pwa-torserve-debug-remote

Remote Debugging for TV

Debugging a TV app is hard. console.log is invisible on the TV screen. Use this skill to capture logs and errors from the TV environment.

📡 Remote Logging Strategy

1. The "On-Screen Console" Overlay

For quick debugging without a laptop connection.

  • Trigger: Konami Code (Up, Up, Down, Down, Left, Right, Left, Right, B, A) or hidden button.
  • UI: A simple fixed-position <div> with overflow-y: scroll, semi-transparent background, high contrast text.
/* Simple Logger Utility */
const originalLog = console.log;
console.log = (...args) => {
  originalLog(...args);
  if (window.debugOverlay) {
    window.debugOverlay.innerHTML += `<div>${args.join(' ')}</div>`;
  }
};

2. Network Logging (Remote Spy)

Send logs to a remote server or simple webhook (e.g., webhook.site for temp debugging).

const LOG_ENDPOINT = 'https://your-log-drain.com/ingest';

function remoteLog(level, message) {
  fetch(LOG_ENDPOINT, {
    method: 'POST',
    body: JSON.stringify({ level, message, timestamp: Date.now() })
  }).catch(() => {}); // Fire and forget
}

3. ADB Logcat (The Gold Standard)

If you have ADB access:

  • Command: adb logcat | grep "Chromium"
  • Filter: Use a unique prefix in your logs: console.log("[PWA]", ...) -> grep "\[PWA\]"

🐛 Common TV Bugs to Watch

  • Focus Traps: Focus goes to an invisible element or gets stuck.
  • Memory Leaks: Large images not being garbage collected. Monitor heap size if possible.
  • Network Timeouts: TV WiFi is often worse than phone WiFi.
  • Clock Skew: TV system time might be wrong (SSL errors).

🛠 Usage

Implements a global window.__DEBUG__ object to toggle modes:

  • window.__DEBUG__.enableOverlay()
  • window.__DEBUG__.disableOverlay()
  • window.__DEBUG__.setRemoteServer(url)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

tv-navigator

No summary provided by upstream source.

Repository SourceNeeds Review
General

capacitor-bridge

No summary provided by upstream source.

Repository SourceNeeds Review
General

resilience-core

No summary provided by upstream source.

Repository SourceNeeds Review