You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,7 +152,15 @@ make destroy
152
152
153
153
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. 🛠️🔍
154
154
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`:
2️⃣ **Adding a Task to Wait for Remote Debugger Server** 🕰️
156
164
157
165
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.
158
166
@@ -169,7 +177,7 @@ Setting up Visual Studio Code for remote Node.js debugging enables smoother and
169
177
}
170
178
```
171
179
172
-
2️⃣**Setting up Debugging Configuration** 🎛️
180
+
3️⃣ **Setting up Debugging Configuration** 🎛️
173
181
174
182
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.
175
183
@@ -191,7 +199,7 @@ Setting up Visual Studio Code for remote Node.js debugging enables smoother and
191
199
}
192
200
```
193
201
194
-
3️⃣**Running the Debugger** 🏃
202
+
4️⃣ **Running the Debugger** 🏃
195
203
196
204
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. 🐳
0 commit comments