Live data from Hacker News

Chrome DevTools now uses Gemini to help with JavaScript Errors in the console

developer.chrome.com

31–40 of 81 posts

Re: Chrome DevTools now uses Gemini to help with JavaScript Errors in the console

#31
post #19

Maybe it's just me but if I felt like my application's error messages weren't easy enough to understand I'd try to improve the messages instead of throwing all the context at an AI and hoping for the best.

Yep. The Web console could just link to some documentation.

The link could even be parameterized so the URLs or other elements related to the error replace placeholders in the doc. But I'm sure a developer is capable of enough abstraction to replace example data themselves.

Re: Chrome DevTools now uses Gemini to help with JavaScript Errors in the console

#32
post #19

Maybe it's just me but if I felt like my application's error messages weren't easy enough to understand I'd try to improve the messages instead of throwing all the context at an AI and hoping for the best.

People have been trying to get compilers and runtimes to generate better errors for decades, and sites like StackOverflow exist to backfill the fact that this is a really hard problem. If an AI can get you a better explanation synchronously, doesn't that in fact represent an improvement in the "messages"?

Re: Chrome DevTools now uses Gemini to help with JavaScript Errors in the console

#34

Why does this exist? The example AI-generated explanation shown doesn't seem any more helpful than the original error. It just states the same information in a long-winded manner. Errors and warnings are already deterministic and unambiguous. Why introduce the opportunity to confuse people or just be plain wrong?

Why does StackOverflow exist? Why does /usr/bin/man exist? The idea that "deterministic and unambiguous" error messages emitted at the point of failure are all that you need to fix your code seems kinda laughable, frankly.

Re: Chrome DevTools now uses Gemini to help with JavaScript Errors in the console

#35
post #32
post #19

Maybe it's just me but if I felt like my application's error messages weren't easy enough to understand I'd try to improve the messages instead of throwing all the context at an AI and hoping for the best.

People have been trying to get compilers and runtimes to generate better errors for decades, and sites like StackOverflow exist to backfill the fact that this is a really hard problem. If an AI can get you a better explanation synchronously, doesn't that in fact represent an improvement in the "messages"?

No because all the AI is doing is making up statistically plausible sounding nonsense? The best case output is a correct summary of the documentation page - why add a huge amount of power use alongside massive privacy invasion just to deal with that?

I have read and re-read this article and I don’t understand how this is better for any purpose other than “we put AI in something, increase our stock price!”

Re: Chrome DevTools now uses Gemini to help with JavaScript Errors in the console

#36
post #31
post #19

Maybe it's just me but if I felt like my application's error messages weren't easy enough to understand I'd try to improve the messages instead of throwing all the context at an AI and hoping for the best.

Yep. The Web console could just link to some documentation. The link could even be parameterized so the URLs or other elements related to the error replace placeholders in the doc. But I'm sure a developer is capable of enough abstraction to replace example data themselves.

Agreed! it would be really helpful if the console just showed me some documentation but if google manages to make something similar to github copilot then it could potentially be a game changer.

Re: Chrome DevTools now uses Gemini to help with JavaScript Errors in the console

#37
post #35
post #32

Earlier quoted context omitted.

People have been trying to get compilers and runtimes to generate better errors for decades, and sites like StackOverflow exist to backfill the fact that this is a really hard problem. If an AI can get you a better explanation synchronously, doesn't that in fact represent an improvement in the "messages"?

No because all the AI is doing is making up statistically plausible sounding nonsense? The best case output is a correct summary of the documentation page - why add a huge amount of power use alongside massive privacy invasion just to deal with that? I have read and re-read this article and I don’t understand how this is better for any purpose other than “we put AI in something, increase our stock price!”

That sounds like a generic argument against any AI integration, though. "All they do is make up statistically plausible sounding nonsense" is definitionally true, but sorta specious as it turns out that nonsense is often pretty useful. In particular in this case because it gives you a "summary of the documentation page" you'd otherwise have to go look up, something we know empirically is difficult for a lot of otherwise productive folks.

Re: Chrome DevTools now uses Gemini to help with JavaScript Errors in the console

#39

I can't wait for end users to submit bug reports containing Geminis interpretation instead of the actual error message.

Oh Jesus... my boss has been known to open Devtools and give us suggestions about what's wrong with the layout/styles without understanding CSS. Now he has an AI to help hallucinate how he'd easily solve any problem.

Tell him on a team call that you can also google the first result and that he is more than free to pull the project and implement the solution to this difficult bug and take responsibility for it. For me that stopped the "Boss" bullshit. Had AI been involved, I can only imagine how painful that would be.

Re: Chrome DevTools now uses Gemini to help with JavaScript Errors in the console

#40
post #19

Maybe it's just me but if I felt like my application's error messages weren't easy enough to understand I'd try to improve the messages instead of throwing all the context at an AI and hoping for the best.

DevTools can't force frameworks and libraries to output better error messages.

But it can help us humans understand them better.

Post reply on HN