(backport 7.x) lib: deprecate node --debug at runtime
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
lib
Backport of #10970. Same except removed the new deprecation code.