Skip to content

src: simplify DEP0062 logic

Rodrigo Muino Tomonari requested to merge github/fork/cjihrig/debug into master

This commit simplifies the DEP0062 error logic. Instead of looking for certain combinations of flags, just show an error for any usage of --debug or --debug-brk.

Fixes: https://github.com/nodejs/node/issues/28588

It's also worth noting that DEP0062 was moved to End-of-Life, meaning that all of this logic can be removed. However, it might be worth leaving it around to print the deprecation message since --debug is a much more logical name than --inspect.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Merge request reports

Loading