Background: I teach basic web development in a high school. Our technology department has disabled developer tools on all web browsers for student accounts after a recent cyber attack. I need a workaround to allow students to see console output that can be implemented without installing any additional software for two basic scenarios.
Scenario #1: Using VS Code web through a Github codespace. I could swear that I found an extension at one point that would show console output, but I haven't been able to locate it again. All the ones I have tried are dependent on browser dev tools being available.
Scenario #2: Using an online platform such as CodeHS, code, etc. Maybe there's a website out there that simulates developer tools? I haven't been able to find anything that will work.
Any advice on how to get students access to something like dev tools without dev tools would be greatly appreciated.
Background: I teach basic web development in a high school. Our technology department has disabled developer tools on all web browsers for student accounts after a recent cyber attack. I need a workaround to allow students to see console output that can be implemented without installing any additional software for two basic scenarios.
Scenario #1: Using VS Code web through a Github codespace. I could swear that I found an extension at one point that would show console output, but I haven't been able to locate it again. All the ones I have tried are dependent on browser dev tools being available.
Scenario #2: Using an online platform such as CodeHS, code., etc. Maybe there's a website out there that simulates developer tools? I haven't been able to find anything that will work.
Any advice on how to get students access to something like dev tools without dev tools would be greatly appreciated.
Share Improve this question asked Nov 18, 2024 at 19:33 Rubicon BeziqueRubicon Bezique 818 bronze badges 8 | Show 3 more comments1 Answer
Reset to default 2There are tools available for demoing code in the browser such as Stackblitz or codepen that could serve this purpose. You can create basic websites and preview them, there is also the option of opening the console. I personally prefer codepen as it does not require someone to register and you can access the console (bottom left button) and see it's contents. To open codepen without registering go to the link
codepen.io/pen
This suggestion was done in the comments by @Bergi so credits to him.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745598868a4635280.html
alert
function to display values on the screen and make them see what values exist. – Lars Vonk Commented Nov 18, 2024 at 23:22alert
is a horrible debugging tool as it stops the code and requires dismissing a modal.console.log
should always be preferred, and taught to students the sooner the better. – Bergi Commented Nov 19, 2024 at 1:55alert
is what we have been using since we don't have console access. Beyond requiring dismissal, it doesn't catch exceptions or do much to help students who are struggling to learn syntax. – Rubicon Bezique Commented Nov 19, 2024 at 20:10