Live data from Hacker News

How I test site speed changes using Chrome's local overrides (2021)

tryblackbird.com

31–32 of 32 posts

Re: How I test site speed changes using Chrome's local overrides (2021)

#31
post #30

I have coworkers who only use 2 of chromes debugging tools: the console and the network tab. They dont know about breakpoints, mapped typescript/react files, or local overrides. Every time they come to me with some issue they're facing, I have them set up breakpoints first before we do anything. Usually that's all that we need to do, and we figure out the problem in about 5mins

> breakpoints Because they suck. Afaik there is no way to setup triggers like break if variable X created break if variable Y >= 123 break before calling Z web api/method

Chrome and vscode both have conditional breakpoints:

https://developer.chrome.com/docs/devtools/javascript/breakp...

Re: How I test site speed changes using Chrome's local overrides (2021)

#32
post #30

Earlier quoted context omitted.

> breakpoints Because they suck. Afaik there is no way to setup triggers like break if variable X created break if variable Y >= 123 break before calling Z web api/method

Chrome and vscode both have conditional breakpoints: https://developer.chrome.com/docs/devtools/javascript/breakp...

line-of-code, cant set global ones, when I want to know if some object is used I need to manually hot patch/proxy it. One other drawback is inability to disable debug() call. Debugging third party/hostile code is real pain.
Post reply on HN