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
+96-10Lines changed: 96 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,15 +146,6 @@ export default {
146
146
147
147
The setting are the same as for CLI parameters.
148
148
149
-
### Custom framework implementation and adjustment
150
-
151
-
```typescript
152
-
getLambdas: async (foundLambdas) => {
153
-
//you can customize the list of lambdas here or create your own
154
-
//return foundLambdas;
155
-
},
156
-
```
157
-
158
149
### Debugging
159
150
160
151
You might want to configure your development tool for debugging. The wizard automatically configures for VsCode in `.vscode/launch.json`. Here is an example:
@@ -221,6 +212,101 @@ Only the basic setup is supported. Check the [test case](https://github.com/Serv
221
212
222
213
I am not a Terraform developer, so I only know the basics. Please provide a sample project so I can build better support.
223
214
215
+
### Custom framework implementation and adjustment
216
+
217
+
Configuration file `lldebugger.config.ts` enables you to modify the list of Lambdas, change the code path, esBuild configuration, or provide your own list of Lambdas, thereby supporting support **any framework**. For this to work, install Lambda Live Debugger locally in the project.
218
+
219
+
```typescript
220
+
getLambdas: async (foundLambdas, config) => {
221
+
//you can customize the list of lambdas here or create your own
222
+
returnfoundLambdas;
223
+
},
224
+
```
225
+
226
+
**Filter list of functions:**
227
+
228
+
```typescript
229
+
getLambdas: async (foundLambdas, config) => {
230
+
returnfoundLambdas?.filter((l) =>
231
+
l.functionName.includes("myfunction"),
232
+
);
233
+
},
234
+
```
235
+
236
+
**Modify code path:**\
237
+
For example, when the framework has only a list of JavaScript files, but you transpiled them from TypeScript with your own solution.
0 commit comments