6. Debugging Containerised Applications Using an IDE Flashcards

1
Q

What are the practical differences between developing an app locally vs in a remote environment such as a VM or a Container?

A

LOCAL

  1. Simple configuration.
  2. Good when the local OS is the same as the app OS.
  3. Good for a single app environment.
  4. No extensions are required.

REMOTE

  1. Can be complex to configure.
  2. Better when container OS is different than the app OS.
  3. Good for multiple app scenarios.
  4. Remote development extension is required.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the default debugging port?

A

9229.

0.0.0.0:9929
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do we configure nodemon to run on debug mode and listen to the default debugging port.

A

By adding an --inspect option to it’s package.json target and passing it 0.0.0.0:9929.

"scripts": {
    //...
    "dev": "nodemon --inspect=0.0.0.0:9229 src/index.js",
    //...
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly