Skip to content

Commit 024ec35

Browse files
fix: Improve documentation
1 parent 284f464 commit 024ec35

File tree

2 files changed

+44
-15
lines changed

2 files changed

+44
-15
lines changed

README.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ It supports the following frameworks:
1717

1818
## Early Alpha State
1919

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 there are numerous ways people configure their projects and TypeScript settings. The tool is flexible and can be adjusted to fit your setup in most cases without needing additional features. If you got stuck, please let me know. Any suggestions for improvements are welcome.**
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.**
2121

2222
Contact me via:
2323

@@ -26,13 +26,13 @@ Contact me via:
2626

2727
## The Problem Statement
2828

29-
Serverless is amazing and solve many issues with traditional systems. But 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.
29+
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.
3030

3131
## How It Works
3232

3333
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.
3434

35-
The tool attaches Lambda Extensions (via a Layer) to intercept calls and relay them to AWS IoT, which 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 Node Worker Threads.
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.
3636

3737
![Architecture](./architecture.drawio.png)
3838

@@ -44,17 +44,17 @@ Lambda Live Debugger makes the following changes to your AWS infrastructure:
4444
- Attaches the Layer to each Lambda you're debugging
4545
- Adds a policy to the Lambda Role for AWS IoT access
4646

47-
In case you do not want to debug all functions and add Layer to them, you can limit to the ones you need via `function` parameter.
47+
In case you do not want to debug all functions and add Layer to them, you can limit to the ones you need via the `function` parameter.
4848

4949
The tool generates temporary files in the `.lldebugger` folder, which can be deleted after debugging. The wizard can add `.lldebugger` to `.gitignore` for you.
5050

5151
## Development Process
5252

53-
Since you deploy code to a real AWS account, it's best to have a dedicated environment only for yourself. It could be your personla environemnt or environment created for a special feature. That is [common practice when developing serverless systems](https://theburningmonk.com/2019/09/why-you-should-use-temporary-stacks-when-you-do-serverless/). If that's not feasible due to organizational or technical reasons, use Observability Mode.
53+
Since you deploy code to a real AWS account, it's best to have a dedicated environment only for yourself. It could be your personal environment or an environment created for a feature. That is [common practice when developing serverless systems](https://theburningmonk.com/2019/09/why-you-should-use-temporary-stacks-when-you-do-serverless/). If that's not feasible due to organizational or technical reasons, use Observability Mode.
5454

5555
## Observability Mode
5656

57-
In Observability Mode, Lambda Live Debugger intercepts requests and sends them to your computer without waiting for a response. The Lambda continues as usual. The response from your machine is ignored. This mode can be used in development, testing, or even, if you are an adventures, production environments. It samples requests every 3 seconds by default (configurable with `interval` setting) to avoid overloading the system.
57+
In Observability Mode, Lambda Live Debugger intercepts requests and sends them to your computer without waiting for a response. The Lambda continues as usual. The response from your machine is ignored. This mode can be used in the development, testing, or even, if you are an adventurous, production environment. It samples requests every 3 seconds by default (configurable with an `interval` setting) to avoid overloading the system.
5858

5959
## Getting Started
6060

@@ -88,7 +88,7 @@ or if installed locally:
8888
npx lld
8989
```
9090

91-
But you probably need to tweak some settings. You can do it via CLI parameters or, better run a wizard:
91+
But you probably need to tweak some settings. You can do it via CLI parameters or, better, run a wizard:
9292

9393
```
9494
lld -w
@@ -106,13 +106,12 @@ The configuration is saved to `lldebugger.config.ts`
106106

107107
```
108108
-V, --version output the version number
109-
-r, --remove [option] Remove Lambda Live Debugger infrastructure. Options: 'keep-layer' (default),
110-
'remove-all'
111-
-w, --wizard Program interactively asks for each parameter
109+
-r, --remove [option] Remove Lambda Live Debugger infrastructure. Options: 'keep-layer' (default), 'remove-all'. The latest also removes the Lambda Layer
110+
-w, --wizard Program interactively asks for each parameter and saves it to lldebugger.config.ts
112111
-v, --verbose Verbose logs
113112
-c, --context <context> AWS CDK context (default: [])
114113
-s, --stage <stage> Serverless Framework stage
115-
-f, --function <function name> Filter by function name
114+
-f, --function <function name> Filter by function name. You can use * as a wildcard
116115
-m, --subfolder <subfolder> Monorepo subfolder
117116
-o, --observable Observable mode
118117
-i --interval <interval> Observable mode interval (default: "3000")
@@ -151,7 +150,7 @@ For other tools, please send documentation to include here. WebStorm instruction
151150

152151
## Monorepo Setup
153152

154-
If your framework is in a subfolder, set the `subfolder` parameter.
153+
Set the `subfolder` parameter if your framework is in a subfolder.
155154

156155
## Custom Configuration
157156

@@ -218,8 +217,8 @@ Check the [open issues](https://github.com/ServerlessLife/lambda-live-debugger/i
218217

219218
## Reporting an Issue
220219

221-
- Make sure the bug isn't already reported. Add a "+1" comment so I know there are multiple users struggling with the same issue. If possible, add some additional info.
222-
- Use descriptive titles with prefixes like "bug:", "help:", "feature:", or "discussion:". Please also add the matching label and, if needed, set priority via label.
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.
223222
- Enable verbose logging and provide the full log.
224223
- Describe your setup in detail, or better yet, provide a sample project.
225224

package.json

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,37 @@
11
{
22
"name": "lambda-live-debugger",
3-
"version": "0.0.87",
3+
"version": "0.0.1",
44
"type": "module",
5+
"description": "Debug Lambda functions locally like it is running in the cloud",
6+
"repository": {
7+
"type": "git",
8+
"url": "[email protected]:ServerlessLife/lambda-live-debugger.git"
9+
},
10+
"license": "MPL-2.0",
11+
"author": {
12+
"name": "Marko (ServerlessLife.com)",
13+
"email": "[email protected]",
14+
"organization": false
15+
},
16+
"keywords": [
17+
"aws",
18+
"lambda",
19+
"debugger",
20+
"serverless",
21+
"aws-lambda",
22+
"javascript",
23+
"typescript",
24+
"dev-tools",
25+
"lambda-debugger",
26+
"aws-cdk",
27+
"serverless-framework",
28+
"sls",
29+
"aws-sam",
30+
"sam",
31+
"terraform",
32+
"local-debugging",
33+
"cloud-development"
34+
],
535
"bin": {
636
"lld": "dist/lldebugger.mjs"
737
},

0 commit comments

Comments
 (0)