3 ms·
Well, yes, unless you count installing IntelliJ as prior setup: https://www.jetbrains.com/help/idea/debugging-javascript-in-chrome.html#debugging_js_asynchrono
by thu2111 6y ago
Well, yes, unless you count installing IntelliJ as prior setup:
https://www.jetbrains.com/help/idea/debugging-javascript-in-chrome.html#debugging_js_asynchronous_code https://www.jetbrains.com/help/idea/debugging-javascript-in-...
It'd be easier to do it with the Chrome debugger though. I sometimes 'fix' websites that have annoying popups or similar with the dev tools.
With complex apps you have the problem that the owners don't want you modifying them, so they're minified and have other techniques applied that debuggers don't like. But that's not something a Lisp machine would have fixed. You can obfuscate any program.
Also, debuggers aren't the same thing as code editors so of course, you'll lose your changes when the page reloads. Making them persistent means throwing together a browser extension.
Chrome is not like IntelliJ though, because Chrome is a compiled C++ app. It's not written in JavaScript and it isn't a reflective environment like IntelliJ is. With IntelliJ you actually can do things like just open up an editor tab and invoke arbitrary internal functionality. With Chrome, not so much.
- ori_b 6y agoI'm not understanding how you propose to resurrect and continue the process after the tab segfaults.
- thu2111 6y agoAh, by "crash" you mean if the renderer process crashes, not website JS code. You can't easily do that with a C++ process indeed, which is why my example was about IntelliJ, not Chrome or any other C++ app. It's much easier to debug and change code on the fly when it's running on a VM like the JVM. I'm not arguing that something like Genera can be matched by any modern app, just that a few operating-system-like apps with similar properties do exist. We just don't think of them as operating systems because they pose as something else. Sort of like how emacs is a Symbolics Lisp-like environment posing as a text editor. If you're going to argue that it's not the same unless it goes all the way down to the metal, well, people have built Java/JVM based operating systems before like JNode. It's technologically possible. Just not worth it. Being able to edit a function in the middle of your filesystem driver without reloading it is neat in theory but I wouldn't want to actually develop a filesystem that way.