Skip to content

Implement mobile debugging support with Eruda#176

Open
Tringlyman wants to merge 1 commit intoPenguinMod:developfrom
Tringlyman:patch-2
Open

Implement mobile debugging support with Eruda#176
Tringlyman wants to merge 1 commit intoPenguinMod:developfrom
Tringlyman:patch-2

Conversation

@Tringlyman
Copy link

Add method to enable mobile debugging with Eruda.

Proposed Changes

It resolves the issue of mobile extension development being more limited because it lacks dev tools by adding a development function in Scratch called enableEruda which adds eruda in the website which is a replacement of dev tools provided by the browser in computers

Reason for Changes

Because as said above, it allows testing extensions in mobile to the max because it gives a dev tool alternative that isn't exclusively available on computers as it's provided through a HTML script

Test Covera

I didn't add test in the repo but if you add

Scratch.enableEruda = function () { var script = document.createElement('script'); script.src="https://cdn.jsdelivr.net/npm/eruda"; document.body.append(script); script.onload = function () { eruda.init(); } };

On top (very top but inside) of the self invoking function or above (outside) it then run the function in the self invoking function then you will see it works

Add method to enable mobile debugging with Eruda.
@jwklong
Copy link
Member

jwklong commented Feb 2, 2026

doesn't work (you cant do backspace)

@Tringlyman
Copy link
Author

doesn't work (you cant do backspace)

If you used it while on a computer then of course it won't work properly

It's point is to be used when on mobile and then remove it in production as it's only for development purposes on mobile

@jwklong
Copy link
Member

jwklong commented Feb 3, 2026

i tried it on another site on pc and backspace did work so your low-key wrong

@Tringlyman
Copy link
Author

i tried it on another site on pc and backspace did work so your low-key wrong

Just remember that you're not supposed to use it in production but only development and only if you develop extensions either in general or at the moment on a mobile device because you don't or can't use a computer so you can see for errors and test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants