lambda-live-debugger 0.0.108 → 0.0.109

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -35,7 +35,7 @@ Serverless is amazing and solves many issues with traditional systems. However,
35
35
 
36
36
  ## How It Works
37
37
 
38
- 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.
38
+ 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. In case of code changes, you do not have to redeploy. The code is reloaded automatically without deploying or even restarting the debugger.
39
39
 
40
40
  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.
41
41
 
@@ -177,6 +177,8 @@ You might want to configure your development tool for debugging. The wizard auto
177
177
  }
178
178
  ```
179
179
 
180
+ Now, you have to press F5 or press Run -> Start Debugging, and you can set breakpoints, step through lines of code, inspect variables... For more information on how to [debug in VSCode, please refer to this link](https://code.visualstudio.com/docs/editor/debugging).
181
+
180
182
  For other tools, please send documentation to include here. WebStorm instructions are especially needed.
181
183
 
182
184
  ## Monorepo Setup
@@ -229,7 +231,7 @@ Check the [GitHub issues](https://github.com/ServerlessLife/lambda-live-debugger
229
231
 
230
232
  ## Reporting an Issue
231
233
 
232
- - 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.
234
+ - Make sure the bug hasn't already been reported. If you fount it has been, add a "+1" comment so I know there are multiple users struggling with the same issue. If possible, add some additional info.
233
235
  - Use descriptive titles with prefixes like "bug:", "help:", "feature:", or "discussion:".
234
236
  - Enable verbose logging and provide the full log.
235
237
  - Describe your setup in detail, or better yet, provide a sample project.
@@ -43,7 +43,13 @@ async function readConfig() {
43
43
  delete configFromCliArgs[key];
44
44
  }
45
45
  }
46
- const configMerged = { ...configFromConfigFile, ...configFromCliArgs };
46
+ const configMerged = {
47
+ ...configFromConfigFile,
48
+ ...configFromCliArgs,
49
+ context: configFromCliArgs.context && configFromCliArgs.context?.length > 0
50
+ ? configFromCliArgs.context
51
+ : configFromConfigFile?.context,
52
+ };
47
53
  const debuggerId = await generateDebuggerId(!!configMerged.observable);
48
54
  setConfig({
49
55
  ...configMerged,
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lambda-live-debugger",
3
- "version": "0.0.108",
3
+ "version": "0.0.109",
4
4
  "type": "module",
5
5
  "description": "Debug Lambda functions locally like it is running in the cloud",
6
6
  "repository": {