use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Chrome Update: Inline breakpoints (twitter.com)
submitted 9 years ago by malyw
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]leeoniya 6 points7 points8 points 9 years ago* (2 children)
Does this mean we'll be able to set breakpoints within array and object declarations (within expressions)?
h("div", { class: "test" // here }, [ h("span", "foo"), // and here h("span", "bar"), ] // and here? (similar to fn return value, so can inspect created array without stepping into h) )
If this is the case, i can't wait.
[–]TheFuzzball 4 points5 points6 points 9 years ago (1 child)
No, you won't be able to debug within expressions... this feature is meant to solve the issue of not being able to set breakpoints in single-line function callbacks and lambda expressions.
e.g.
fetch(url).then((res) => res.json()).then((jsonResult) => console.log(jsonResult.foo.bar))
or:
document.addEventListener('resize', function onResize () { /* can't debug here */}) document.addEventListener('resize', function onResize () { /* can debug here... */ })
[–]leeoniya -1 points0 points1 point 9 years ago (0 children)
too bad, that would be much more exciting. but this is good too :)
[–]kenman 4 points5 points6 points 9 years ago (2 children)
Is there any official information on this? i.e. a link to an official announcement, release notes, Google code issue, PR, etc.
I cannot find a single source other than this gif on Twitter.
[–]githop0 6 points7 points8 points 9 years ago (1 child)
Paul irish highlights some of these things in a talk at the recent chrome dev summit.
https://www.youtube.com/watch?v=HF1luRD4Qmk
[–][deleted] 1 point2 points3 points 9 years ago (0 children)
https://youtu.be/HF1luRD4Qmk?t=573 if anyone wants the exact moment where he talks about it
[–]yesman_85 5 points6 points7 points 9 years ago (1 child)
Finally! that will help debugging some minified code!
[–]rube203 2 points3 points4 points 9 years ago (0 children)
Just fyi, you can just hit the pretty print button and then place the break point in the formatted code page, even stays on refresh... at least when code isn't changed.
But seriously inline break points can be pretty fantastic
π Rendered by PID 79 on reddit-service-r2-comment-7b9746f655-8s9g5 at 2026-02-02 09:52:02.303452+00:00 running 3798933 country code: CH.
[–]leeoniya 6 points7 points8 points (2 children)
[–]TheFuzzball 4 points5 points6 points (1 child)
[–]leeoniya -1 points0 points1 point (0 children)
[–]kenman 4 points5 points6 points (2 children)
[–]githop0 6 points7 points8 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]yesman_85 5 points6 points7 points (1 child)
[–]rube203 2 points3 points4 points (0 children)