Welcome to the Linux Foundation Forum!

Lab 4.2

Hello.

I am trying stuff around, and not sure why --inspect flag skips debugging.

For example - I can run inspector mode with flag --inspect-brk in chrome dev-tools, but if I try to use only ** --inspect** the start process is skipping the inspect mode.

It seems that it just skips the debugging stuff as the error is thrown from the code (Photo bellow).
What I am getting wrong? :)

Comments

  • @ninode97 yes this is by design.

    --inspect-brk breaks immediately so you can set other breakpoints

    --inspect just enables inspect mode, with no first line break. This can be used in something like an HTTP server scenario where you can put break points in the code path of a request to a route without the process needing to be paused to start off with.

This discussion has been closed.

Categories

Upcoming Training