Skip to content

Commit 9736dd4

Browse files
committed
add ECS_DOCKER_FLAGS to readme
1 parent 9d2de2c commit 9736dd4

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,15 @@ make destroy
152152

153153
Setting up Visual Studio Code for remote Node.js debugging enables smoother and more intuitive development workflows. This guide will walk you through the essential steps to configure your VSCode efficiently for remote debugging of your Node.js applications. 🛠️🔍
154154

155-
1️⃣ **Adding a Task to Wait for Remote Debugger Server** 🕰️
155+
1️⃣ **Configure LocalStack for remote Node.js debugging** 🛠️
156+
157+
First, we need to configure LocalStack to enable remote debugging of Node.js applications. To do so, we need to set the `ECS_DOCKER_FLAGS` to enable the debugger using `NODE_OPTIONS`:
158+
159+
```bash
160+
export ECS_DOCKER_FLAGS="e NODE_OPTIONS=--inspect-brk=0.0.0.0:9229 -p 9229:9229
161+
```
162+
163+
2️⃣ **Adding a Task to Wait for Remote Debugger Server** 🕰️
156164
157165
First, let's ensure that VSCode waits for the remote debugger server to be available. Add a new task by creating or modifying the `.vscode/tasks.json` file in your project directory.
158166
@@ -169,7 +177,7 @@ Setting up Visual Studio Code for remote Node.js debugging enables smoother and
169177
}
170178
```
171179
172-
2️⃣ **Setting up Debugging Configuration** 🎛️
180+
3️⃣ **Setting up Debugging Configuration** 🎛️
173181
174182
Next, define how VSCode should connect to the remote Node.js application. Create a new `launch.json` file or modify an existing one from the *Run and Debug* tab, then add the following configuration.
175183
@@ -191,7 +199,7 @@ Setting up Visual Studio Code for remote Node.js debugging enables smoother and
191199
}
192200
```
193201
194-
3️⃣ **Running the Debugger** 🏃
202+
4️⃣ **Running the Debugger** 🏃
195203
196204
Finally, run the debugger by selecting the *Attach to Remote Node.js* configuration from the *Run and Debug* tab. You can now set breakpoints and debug your Node.js application running in a Docker container. 🐳
197205

0 commit comments

Comments
 (0)