[null,null,["最后更新时间 (UTC):2024-08-21。"],[[["Use the Chrome Remote Debugger to debug your Cast Web Receiver application by inspecting it through `chrome://inspect` or directly accessing the device's 9222 port."],["To enable debugging, register your application and Cast device on the Google Cast SDK Developer Console, ensuring both are linked to the same developer account."],["Initiate a cast session from your sender app to the target Cast device to load the Web Receiver and allow the debugger to connect."],["Leverage the Chrome Remote Debugger's console for logging, DOM manipulation, and utilizing the JavaScript REPL for interacting with the running Web Receiver app."],["Remember to disable debug logging in production environments and avoid logging sensitive information."]]],["To debug a Cast app using Chrome Remote Debugger, first register your app and device on the Google Cast SDK Developer Console. Then, start your sender app and cast to the device to load the Web Receiver app. Connect to the device via `chrome://inspect` or directly using `\u003cdevice IP address\u003e:9222`. Select the Web Receiver session to debug and enable debug logging with `cast.framework.CastReceiverContext.getInstance().setLoggerLevel(cast.framework.LoggerLevel.DEBUG);`. Use `debugger;` for breakpoints and `window.location.reload(true);` to flush the cache. Preserve logs between sessions in the settings.\n"]]