Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v14.x backport] debugger patches #39446

Closed
wants to merge 24 commits into from

Commits on Jul 20, 2021

  1. lib: add primordials.SafeArrayIterator

    PR-URL: nodejs#36532
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    aduh95 committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    c53b4ad View commit details
    Browse the repository at this point in the history
  2. Revert "debugger: rename internal library for clarity"

    This reverts commit d0c7ab0.
    aduh95 committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    1355e52 View commit details
    Browse the repository at this point in the history
  3. debugger: add usage example for --port

    PR-URL: nodejs#38400
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    RafaelGSS authored and aduh95 committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    7b5e17f View commit details
    Browse the repository at this point in the history
  4. debugger: refactor internal/inspector/_inspect to use more primordials

    PR-URL: nodejs#38406
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    aduh95 committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    8146a8c View commit details
    Browse the repository at this point in the history
  5. debugger: wait for V8 debugger to be enabled

    Refs: nodejs#38273 (comment)
    
    PR-URL: nodejs#38811
    Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
    Reviewed-By: Richard Lau <rlau@redhat.com>
    Reviewed-By: Beth Griggs <bgriggs@redhat.com>
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    targos authored and aduh95 committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    cc589f3 View commit details
    Browse the repository at this point in the history
  6. debugger: revise async iterator usage to comply with lint rules

    I'm not sure that this is any clearer than the existing code, but I
    don't think it's significantly less clear, and it avoids comment
    disabling a lint rule.
    
    PR-URL: nodejs#38847
    Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and aduh95 committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    e036082 View commit details
    Browse the repository at this point in the history
  7. debugger: reduce scope of eslint disable comment

    Current code masks setInterval and setTimeout with promisified versions.
    This can be confusing to read and causes lint errors. Replace masking
    with use of pSetInterval and pSetTimeout instead.
    
    Move disabling of lint rule from entire file to the one remaining line
    (after the above changes) that still needs it.
    
    PR-URL: nodejs#38946
    Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and aduh95 committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    e622105 View commit details
    Browse the repository at this point in the history
  8. debugger: enable linter on internal/inspector/inspect_client

    PR-URL: nodejs#38417
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    aduh95 committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    9b960d9 View commit details
    Browse the repository at this point in the history
  9. debugger: remove unnecessary boilerplate copyright comment

    PR-URL: nodejs#38952
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Darshan Sen <raisinten@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and aduh95 committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    5ae4a50 View commit details
    Browse the repository at this point in the history
  10. debugger: align message with Node.js standard

    Node.js uses (or will use) _Ctrl+C_ with no spaces. To unify the
    messages from inspect with other messages from the REPL and elsewhere,
    make that change in node-inspect too.
    
    PR-URL: nodejs#38400
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and aduh95 committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    ccc69e0 View commit details
    Browse the repository at this point in the history
  11. debugger: wrap lines longer than 80 chars

    Wrap lines more than 80 chararcters long in inspect_repl.js so we can
    disable specific rules.
    
    PR-URL: nodejs#38529
    Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and aduh95 committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    8b16b82 View commit details
    Browse the repository at this point in the history
  12. debugger: avoid non-ASCII char in code file

    Avoid non-ASCII char in lib code as a single non-ASCII char forces all
    the chars to be stored inefficiently, bloating the binary size. This
    also brings the file closer to compatibility with our lint rules.
    
    PR-URL: nodejs#38529
    Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and aduh95 committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    62131f6 View commit details
    Browse the repository at this point in the history
  13. debugger: disable only the lint rules required by current file state

    PR-URL: nodejs#38529
    Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and aduh95 committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    d025841 View commit details
    Browse the repository at this point in the history
  14. debugger: refactor to use internal modules

    This avoids loading the entirety of `node:util` and `node:url` and their
    dependencies while only a subset is actually used by this module.
    
    PR-URL: nodejs#38550
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Darshan Sen <raisinten@gmail.com>
    aduh95 committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    e86361a View commit details
    Browse the repository at this point in the history
  15. debugger: refactor inspect_repl to use primordials

    PR-URL: nodejs#38551
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    aduh95 committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    22320ed View commit details
    Browse the repository at this point in the history
  16. debugger: removed unused function argument

    PR-URL: nodejs#38850
    Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and aduh95 committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    f41d010 View commit details
    Browse the repository at this point in the history
  17. errors: add ERR_DEBUGGER_ERROR

    PR-URL: nodejs#39024
    Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Jan Krems <jan.krems@gmail.com>
    Trott authored and aduh95 committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    7a5e902 View commit details
    Browse the repository at this point in the history
  18. debugger: use ERR_DEBUGGER_ERROR in debugger client

    PR-URL: nodejs#39024
    Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Jan Krems <jan.krems@gmail.com>
    Trott authored and aduh95 committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    beb3dce View commit details
    Browse the repository at this point in the history
  19. debugger: use error codes in debugger REPL

    PR-URL: nodejs#39024
    Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Jan Krems <jan.krems@gmail.com>
    Trott authored and aduh95 committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    a4c42b5 View commit details
    Browse the repository at this point in the history
  20. errors: add ERR_DEBUGGER_STARTUP_ERROR

    PR-URL: nodejs#39024
    Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Jan Krems <jan.krems@gmail.com>
    Trott authored and aduh95 committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    584f779 View commit details
    Browse the repository at this point in the history
  21. debugger: use ERR_DEBUGGER_STARTUP_ERROR in _inspect.js

    PR-URL: nodejs#39024
    Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Jan Krems <jan.krems@gmail.com>
    Trott authored and aduh95 committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    f5dd504 View commit details
    Browse the repository at this point in the history
  22. debugger: rename internal library for clarity

    When I moved these files from node-inspect to Node.js core, I put them
    in lib/internal/inspector. That was a mistake. They should be in
    lib/internal/debugger.
    
    PR-URL: nodejs#39080
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Trott authored and aduh95 committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    2e8360e View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    1211825 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    9cd07e1 View commit details
    Browse the repository at this point in the history