Hacker News new | ask | show | jobs
by rasz 1058 days ago
> 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

1 comments

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.