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
+27-20Lines changed: 27 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,28 +19,32 @@ It supports the following frameworks:
19
19
20
20
**This project is in the early alpha stage. Your feedback is incredibly valuable. Please let me know if it works for you or if you encounter any issues. I've tested many scenarios, but people can configure their projects and TypeScript settings in numerous ways. The tool is flexible and can be adjusted to fit your setup in most cases without needing additional features. If you need help, please let me know. Any suggestions for improvements are welcome.**
21
21
22
-
Contact me via:
22
+
If the tool is working well for you, please fill out the general [FEEDBACK FORM](https://forms.gle/v6ekZtuB45Rv3EyW9). This helps us understand how extensively the tool has been tested and whether there is a general interest in its further development.
23
+
24
+
If you've encountered a bug, need help, or would like to request additional features, please create an issue on [GitHub Issue](https://github.com/ServerlessLife/lambda-live-debugger/issues).
Serverless is amazing and solves many issues with traditional systems. However, writing code for Lambda functions can be challenging. The cycle of writing, deploying, running, fixing, and redeploying is time-consuming and tedious. While local testing tools and unit/integration tests exist, they often don't replicate the actual environment closely enough.
33
+
Serverless is amazing and solves many issues with traditional systems. However, writing code for Lambda functions can be challenging. The cycle of writing, deploying, running, fixing, and redeploying is time-consuming and tedious. You could use tools to run Lambda locally or use unit/integration tests; those approaches often don't replicate the actual environment closely enough.
30
34
31
35
## How It Works
32
36
33
-
Lambda Live Debugger connects to your deployed Lambda, routes requests to your computer, and sends responses back to the Lambda. This allows you to debug locally, but the system behaves as if the code is running in the cloud with the same permissions.
37
+
Lambda Live Debugger connects to your deployed Lambda, routes requests to your computer, and sends responses back to the deployed Lambda. This allows you to debug locally, but the system behaves as if the code is running in the cloud with the same permissions.
34
38
35
-
The tool attaches Lambda Extensions (via a Layer) to intercept and relay calls to AWS IoT, transferring messages between your Lambda and local machine. If the Lambda is written in TypeScript, it's transpiled to JavaScript. The code is executed via Node Worker Thread.
39
+
The tool attaches Lambda Extensions (via a Layer), intercepts, and relays calls to AWS IoT. AWS IoT transfers messages between your Lambda and local machine. If the Lambda is written in TypeScript, it's transpiled to JavaScript. The code is executed via the Node Worker Thread.
36
40
37
41

38
42
39
43
### Infrastructure Changes
40
44
41
45
Lambda Live Debugger makes the following changes to your AWS infrastructure:
42
46
43
-
-Adds Lambda Layer
47
+
-Deploys Lambda Layer
44
48
- Attaches the Layer to each Lambda you're debugging
45
49
- Adds a policy to the Lambda Role for AWS IoT access
46
50
@@ -71,7 +75,7 @@ _(On Linux and Mac: `sudo npm install lambda-live-debugger -g`)_
71
75
or locally
72
76
73
77
```
74
-
npm install lambda-live-debugger -g
78
+
npm install lambda-live-debugger
75
79
```
76
80
77
81
_(If installed locally, you must prefix all commands with `npx`, if they are not part of `scripts` in `package.json`.)_
@@ -116,17 +120,17 @@ The configuration is saved to `lldebugger.config.ts`.
// you can customize the list of lambdas here or create your own
132
136
// return foundLambdas;
@@ -138,10 +142,12 @@ The setting are the same as for CLI parameters.
138
142
139
143
### Custom framework implementation and adjustment
140
144
145
+
```typescript
141
146
getLambdas: async (foundLambdas) => {
142
147
//you can customize the list of lambdas here or create your own
143
148
//return foundLambdas;
144
149
},
150
+
```
145
151
146
152
### Debugging
147
153
@@ -151,7 +157,7 @@ You might want to configure your development tool for debugging. The wizard auto
151
157
{
152
158
"version": "0.2.0",
153
159
"configurations": [
154
-
{
160
+
{
155
161
"name": "Lambda Live Debugger",
156
162
"type": "node",
157
163
"request": "launch",
@@ -160,8 +166,8 @@ You might want to configure your development tool for debugging. The wizard auto
160
166
"console": "integratedTerminal",
161
167
"skipFiles": ["<node_internals>/**"],
162
168
"env": {}
163
-
}
164
-
]
169
+
}
170
+
]
165
171
}
166
172
```
167
173
@@ -209,18 +215,19 @@ I am not a Terraform developer, so I only know the basics. Please provide a samp
209
215
210
216
## Know issues
211
217
212
-
...
218
+
Check the [GitHub issues](https://github.com/ServerlessLife/lambda-live-debugger/issues).
213
219
214
220
## Missing Features
215
221
216
-
Check the [open issues](https://github.com/ServerlessLife/lambda-live-debugger/issues). The biggest missing feature right now is MFA authentication and more Terraform configurations.
222
+
Check the [GitHub issues](https://github.com/ServerlessLife/lambda-live-debugger/issues). The biggest missing feature right now is MFA authentication and more Terraform configurations.
217
223
218
224
## Reporting an Issue
219
225
220
-
- Make sure the bug hasn't already been reported. Add a "+1" comment so I know there are multiple users struggling with the same issue. If possible, add some additional info.
221
-
- Use descriptive titles with prefixes like "bug:", "help:", "feature:", or "discussion:". Please also add the matching label and, if needed, set priority via a label.
226
+
- Make sure the bug hasn't already been reported. If you fount if, add a "+1" comment so I know there are multiple users struggling with the same issue. If possible, add some additional info.
227
+
- Use descriptive titles with prefixes like "bug:", "help:", "feature:", or "discussion:".
222
228
- Enable verbose logging and provide the full log.
223
229
- Describe your setup in detail, or better yet, provide a sample project.
230
+
- Specify exact framework version (CDK, SLS, SAM ...) and exact version of Lambda Live Debugger version.
224
231
225
232
## Authors:
226
233
@@ -229,7 +236,7 @@ Check the [open issues](https://github.com/ServerlessLife/lambda-live-debugger/i
229
236
230
237
## Contributors (alphabetical)
231
238
232
-
- ⭐ Your name here for smaller code/documentation contributionsor sample projects as part of bug reports
239
+
- ⭐ Your name here for documentation contributions, minor code additions, or sample projects submitted with bug reports.
0 commit comments