I’m working with a Svelte 5 application that has already been deployed in production, and I don’t have access to its source code. I’d like to inspect or interact with some of its internal variables and functions from the browser developer console.
Here’s what I’ve tried so far:
- Looked for global variables on window or document (no luck so far).
- Tried using the Svelte DevTools extension, but it doesn’t support Svelte 5 yet.
- Used breakpoints in DevTools to pause execution and identify functions in scope, but I haven’t been able to call them from the console once execution resumes.
Is there a reliable way (e.g., through DevTools, function references, or any hooks Svelte leaves in production builds) to access variables or functions from a deployed Svelte 5 app in the browser console?