lambda-live-debugger 0.0.115 → 0.0.117
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 +16 -17
- package/dist/configuration/getConfigFromCliArgs.mjs +1 -1
- package/dist/configuration/getConfigFromWizard.mjs +2 -2
- package/dist/extension/extension.zip +0 -0
- package/dist/extension/nodejs/node_modules/interceptor.js +12 -4
- package/dist/extension/nodejs/node_modules/interceptor.js.map +2 -2
- package/dist/logger.mjs +8 -4
- package/dist/types/lldConfig.d.ts +1 -1
- package/dist/vsCode.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -108,7 +108,7 @@ The configuration is saved to `lldebugger.config.ts`.
|
|
|
108
108
|
-V, --version output the version number
|
|
109
109
|
-r, --remove [option] Remove Lambda Live Debugger infrastructure. Options: 'keep-layer' (default), 'remove-all'. The latest also removes the Lambda Layer
|
|
110
110
|
-w, --wizard Program interactively asks for each parameter and saves it to lldebugger.config.ts
|
|
111
|
-
-v, --verbose Verbose
|
|
111
|
+
-v, --verbose Verbose logging
|
|
112
112
|
-c, --context <context> AWS CDK context (default: [])
|
|
113
113
|
-s, --stage <stage> Serverless Framework stage
|
|
114
114
|
-f, --function <function name> Filter by function name. You can use * as a wildcard
|
|
@@ -138,7 +138,7 @@ export default {
|
|
|
138
138
|
observable: false,
|
|
139
139
|
verbose: false,
|
|
140
140
|
//getLambdas: async (foundLambdas) => {
|
|
141
|
-
// you can customize the list of
|
|
141
|
+
// you can customize the list of Lambdas here or create your own
|
|
142
142
|
// return foundLambdas;
|
|
143
143
|
//},
|
|
144
144
|
} satisfies LldConfigTs;
|
|
@@ -218,19 +218,17 @@ Configuration file `lldebugger.config.ts` enables you to modify the list of Lamb
|
|
|
218
218
|
|
|
219
219
|
```typescript
|
|
220
220
|
getLambdas: async (foundLambdas, config) => {
|
|
221
|
-
//you can customize the list of
|
|
221
|
+
//you can customize the list of Lambdas here or create your own
|
|
222
222
|
return foundLambdas;
|
|
223
|
-
}
|
|
223
|
+
};
|
|
224
224
|
```
|
|
225
225
|
|
|
226
226
|
**Filter list of functions:**
|
|
227
227
|
|
|
228
228
|
```typescript
|
|
229
229
|
getLambdas: async (foundLambdas, config) => {
|
|
230
|
-
return foundLambdas?.filter((l) =>
|
|
231
|
-
|
|
232
|
-
);
|
|
233
|
-
},
|
|
230
|
+
return foundLambdas?.filter((l) => l.functionName.includes('myfunction'));
|
|
231
|
+
};
|
|
234
232
|
```
|
|
235
233
|
|
|
236
234
|
**Modify code path:**\
|
|
@@ -241,11 +239,11 @@ getLambdas: async (foundLambdas, config) => {
|
|
|
241
239
|
if (foundLambdas) {
|
|
242
240
|
for (const lambda of foundLambdas) {
|
|
243
241
|
lambda.codePath = lambda.codePath
|
|
244
|
-
.replace(
|
|
245
|
-
.replace(
|
|
242
|
+
.replace('/dist/', '/src/')
|
|
243
|
+
.replace('.js', '.ts');
|
|
246
244
|
}
|
|
247
245
|
}
|
|
248
|
-
}
|
|
246
|
+
};
|
|
249
247
|
```
|
|
250
248
|
|
|
251
249
|
**Modify esBuild configuration:**
|
|
@@ -259,8 +257,9 @@ export default {
|
|
|
259
257
|
if (foundLambdas) {
|
|
260
258
|
for (const lambda of foundLambdas) {
|
|
261
259
|
lambda.esBuildOptions = {
|
|
262
|
-
|
|
263
|
-
|
|
260
|
+
target: "node14",
|
|
261
|
+
};
|
|
262
|
+
}
|
|
264
263
|
}
|
|
265
264
|
}
|
|
266
265
|
} satisfies LldConfigTs;
|
|
@@ -316,10 +315,10 @@ If you have a new feature idea, please create and issue.
|
|
|
316
315
|
## Reporting an Issue
|
|
317
316
|
|
|
318
317
|
- 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.
|
|
319
|
-
-
|
|
320
|
-
-
|
|
318
|
+
- **Enable verbose logging and provide the full log.**
|
|
319
|
+
- **Specify the exact framework version (CDK, SLS, SAM ...) and the exact Lambda Live Debugger version.**
|
|
321
320
|
- Describe your setup in detail, or better yet, provide a sample project.
|
|
322
|
-
-
|
|
321
|
+
- Use descriptive titles with prefixes like "bug:", "help:", "feature:", or "discussion:".
|
|
323
322
|
|
|
324
323
|
## Authors:
|
|
325
324
|
|
|
@@ -328,7 +327,7 @@ If you have a new feature idea, please create and issue.
|
|
|
328
327
|
|
|
329
328
|
## Contributors (alphabetical):
|
|
330
329
|
|
|
331
|
-
- ⭐ Your name here for notable code or documentation contributions
|
|
330
|
+
- ⭐ Your name here for notable code or documentation contributions or sample projects submitted with a bug report that resulted in tool improvement.
|
|
332
331
|
|
|
333
332
|
## Declarment
|
|
334
333
|
|
|
@@ -13,7 +13,7 @@ export async function getConfigFromCliArgs(supportedFrameworks = []) {
|
|
|
13
13
|
program.name('lld').description('Lambda Live Debugger').version(version);
|
|
14
14
|
program.option('-r, --remove [option]', "Remove Lambda Live Debugger infrastructure. Options: 'keep-layer' (default), 'remove-all'. The latest also removes the Lambda Layer");
|
|
15
15
|
program.option('-w, --wizard', 'Program interactively asks for each parameter and saves it to lldebugger.config.ts');
|
|
16
|
-
program.option('-v, --verbose', 'Verbose
|
|
16
|
+
program.option('-v, --verbose', 'Verbose logging');
|
|
17
17
|
program.option('-c, --context <context>', 'AWS CDK context', (value, previous) => previous.concat(value), []);
|
|
18
18
|
program.option('-s, --stage <stage>', 'Serverless Framework stage');
|
|
19
19
|
program.option('-f, --function <function name>', 'Filter by function name. You can use * as a wildcard');
|
|
@@ -293,11 +293,11 @@ export default {
|
|
|
293
293
|
observable: ${config.observable},
|
|
294
294
|
// Observable mode interval
|
|
295
295
|
interval: ${config.interval === defaultObservableInterval ? undefined : config.interval},
|
|
296
|
-
// Verbose
|
|
296
|
+
// Verbose logging
|
|
297
297
|
verbose: ${config.verbose},
|
|
298
298
|
// Modify Lambda function list or support custom framework
|
|
299
299
|
//getLambdas: async (foundLambdas) => {
|
|
300
|
-
// you can customize the list of
|
|
300
|
+
// you can customize the list of Lambdas here or create your own
|
|
301
301
|
// return foundLambdas;
|
|
302
302
|
//},
|
|
303
303
|
} satisfies LldConfigTs;
|
|
Binary file
|
|
@@ -50090,17 +50090,25 @@ function log(...args) {
|
|
|
50090
50090
|
console.log(...args);
|
|
50091
50091
|
}
|
|
50092
50092
|
function important(...args) {
|
|
50093
|
-
|
|
50093
|
+
args = args.map(
|
|
50094
|
+
(arg) => typeof arg === "string" ? source_default.hex(orange)(arg) : arg
|
|
50095
|
+
);
|
|
50096
|
+
console.log(...args);
|
|
50094
50097
|
}
|
|
50095
50098
|
function error(...args) {
|
|
50096
|
-
|
|
50099
|
+
args = args.map((arg) => typeof arg === "string" ? source_default.red(arg) : arg);
|
|
50100
|
+
console.error(...args);
|
|
50097
50101
|
}
|
|
50098
50102
|
function warn(...args) {
|
|
50099
|
-
|
|
50103
|
+
args = args.map(
|
|
50104
|
+
(arg) => typeof arg === "string" ? source_default.hex(orange)(arg) : arg
|
|
50105
|
+
);
|
|
50106
|
+
console.warn(...args);
|
|
50100
50107
|
}
|
|
50101
50108
|
function verbose(...args) {
|
|
50102
50109
|
if (verboseEnabled) {
|
|
50103
|
-
|
|
50110
|
+
args = args.map((arg) => typeof arg === "string" ? source_default.grey(arg) : arg);
|
|
50111
|
+
console.info(...args);
|
|
50104
50112
|
}
|
|
50105
50113
|
}
|
|
50106
50114
|
function setVerbose(enabled) {
|