Skip to content

Uniform way to trigger debugger on first line #12630

@refack

Description

@refack

Ref: #12364

  1. Have --inspect --debug-brk as a uniform way to trigger debug on first line
    1. Restore the --inspect --debug-brk combo to v7+v8 (inspector: restore --debug-brk alias #12580)
    2. Does it stay undocumented? Or maybe it should become the primary option and remove --inspect-brk (re: inspector: make debug an alias for inspect #11441)
      (IMHO if we keep it --debug-brk, --inspect-brk will probably never be used)
    3. Will the combo be valid in node8?
    4. What do we do with --debug-port / inspect-port?
    5. In light of these, consider what to mark as deprecated.
    6. Since v6 and v7 requires the combo --inspect[=port] --debug-brk[=port] is specifying port on both args a valid invocation, and in that case which port wins?
  2. Have --inspect-brk as a uniform way to trigger debug on first line
    1. Keep the --inspect --debug-brk combo in v7 alone (deprecation notice yes/no) (i.e. don't land src: Remove support for --debug #12197 in v7)
    2. port the --inspect-brk alias to v6 (inspector: enable --inspect-brk in v6 #12615)
      [new comment] this will make --inspect-break a feature of recent versions of 6.x, but it can't change the past: versions of 6.x will always exist without this feature, and so will not be debuggable by third-party tooling [without special treatment]
    3. for v4 it's irrelevant since it's a different protocol and other means of detection and handling is necessary
  3. Help the users adapt to our plan:
    1. Help fix VSCode properly, make it compatible with our current and future plans (/cc @roblourens Ref: [wip] implement runtimeExecutable version detection microsoft/vscode-node-debug2#100)
    2. Make sure JetBrains handle node8 nightlies (/cc @ulitink @segrey youtrack#WEB-26568)

User feedback

I'm trying to get more feedback from @roblourens and JetBrains, so you could make the best decision.

  1. Quote from youtrack#WEB-26568
    image

  2. Comment from @roblourens regression: 3rd party debuggers are incompatible with node8 nighlies #12364 (comment)

P.S. at present WebStorm and IDEA based IDEs can't trigger debug in node8 nightlies (nor can VSCode)

Metadata

Metadata

Assignees

No one assigned

    Labels

    inspectorIssues and PRs related to the V8 inspector protocolltsIssues and PRs related to Long Term Support releases.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions