Skip to content

"breakpoints" command not listing breakpoints: "No breakpoints yet" #41790

Open

Description

@cirosantilli

Hi, is this the upstream for what I describe below? :-)

main.js

#!/usr/bin/env node

function myfunc(i) {
  return i + 1;
}

let i = 1;
i += 1;
console.log(myfunc(i));

Start debugging:

node inspect main.js

Leaves me at:

Break on start in main.js:7
  5 }
  6 
> 7 let i = 1;
  8 i += 1;
  9 console.log(myfunc(i));

Now I set a breakpoint successfully:

sb('myfunc()')

but when I then run:

breakpoints

it just shows:


debug> breakpoints
No breakpoints yet

But help says: https://github.com/nodejs/node-inspect/blob/643179ef5e0452a52ceef2c5e7c8ca42ab00280f/lib/internal/inspect_repl.js#L57

Tested on node v14.15.3.

Activity

  1. copperwall commented on Dec 30, 2020

    @copperwall
    Contributor

    That's interesting, it looks like ends up calling debug from the Command Line API instead of Debugger.setBreakpoint, so there's not enough info from debug to track it, even though the debugger will stop at that function.

    Using debug in Chrome Dev Tools also doesn't show a breakpoint in the Sources tab either.

    I wonder if the tool could store a special type of breakpoint in knownBreakpoints for listing it out, and then calling undebug if you call clearBreakpoint with a function name instead of a url/line.

    It does look like it's currently matching the Chrome debugger behavior.

  2. hybrist commented on Jan 31, 2022

    @hybrist
    Contributor

    Thanks for the report! I think that would be a nice feature and I assume a PR adding this feature would likely be merged.

  3. rotu commented on Jul 10, 2024

    @rotu

    Still an issue in Node 22.4.1.

  4. github-actions commented on Jun 27, 2026

    @github-actions
    Contributor

    This issue has been marked as stale due to 210 days of inactivity.
    It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.

  5. added
    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.
    on Jun 27, 2026
  6. rotu commented on Jun 29, 2026

    @rotu

    .

  7. removed
    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.
    on Jun 30, 2026
  8. github-actions commented on Sep 29, 2026

    @github-actions
    Contributor

    This issue has been marked as stale due to 90 days of inactivity.
    It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.

  9. added
    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.
    on Sep 29, 2026
  10. rotu commented on Sep 29, 2026

    @rotu

    Has a human looked at this issue? @avivkeller, can we please disable the stale bot and improve issue triage instead.

  11. avivkeller commented on Sep 29, 2026

    @avivkeller
    Member

    Has a human looked at this issue? @avivkeller, can we please disable the stale bot and improve issue triage instead.

    The stale bot allows us to keep active issues open, and inactive ones closed. This issue, as the stale bot has helpfully reported, seems to be inactive, but you are more than welcome to open a PR if you'd like to see the issue resolved.

  12. avivkeller commented on Sep 29, 2026

    @avivkeller
    Member

    improve issue triage instead

    Node.js is a very high profile project, and it's maintained by a network of volunteers. We put a lot of effort into looking at issues, opening PRs, and making the project great for y'all. I'm not sure what you are asking us to improve?

  13. rotu commented on Sep 29, 2026

    @rotu

    I'm not sure what you are asking us to improve?

    I'm thinking maybe have a bot try to reproduce the issue and close issues that fail to reproduce, are insufficiently detailed, are likely duplicates, or are unimportant. I'm sure there's more work to be done than anyone (especially volunteers!) can get around to, and it feels like staleness alone is not a great reason to throw away issue reports.

  14. removed
    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.
    on Sep 30, 2026
  15. dualfroz commented on Oct 14, 2026

    @dualfroz

    picked up #53798 and finished it, PR is #66744 (rotu kept as co-author)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions