| 1 |
# Aspect recommended Bazel flags when using Aspect's JavaScript rules: https://github.com/aspect-build/rules_js |
| 2 |
# Docs for Node.js flags: https://nodejs.org/en/docs/guides/debugging-getting-started/#command-line-options |
| 3 |
|
| 4 |
# Support for debugging Node.js tests. Use bazel run with `--config=debug` to turn on the NodeJS |
| 5 |
# inspector agent. The node process will break before user code starts and wait for the debugger to |
| 6 |
# connect. Pass the --inspect-brk option to all tests which enables the node inspector agent. See |
| 7 |
# https://nodejs.org/de/docs/guides/debugging-getting-started/#command-line-options for more |
| 8 |
# details. |
| 9 |
# Docs: https://nodejs.org/en/docs/guides/debugging-getting-started/#command-line-options |
| 10 |
run:debug -- --node_options=--inspect-brk |
| 11 |
test:debug --test_env=NODE_OPTIONS=--inspect-brk |