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
- Simple configuration.
- Good when the local OS is the same as the app OS.
- Good for a single app environment.
- No extensions are required.
REMOTE
- Can be complex to configure.
- Better when container OS is different than the app OS.
- Good for multiple app scenarios.
- Remote development extension is required.
2
Q
What is the default debugging port?
A
9229.
0.0.0.0:9929
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", //... }