Skip to content

Commit

Permalink
Showing 1 changed file with 30 additions and 8 deletions.
38 changes: 30 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -90,7 +90,7 @@ You probably need to tweak some settings. You can do it via CLI parameters or, b
lld -w
```

The configuration is saved to `lldebugger.config.ts`
The configuration is saved to `lldebugger.config.ts`.

### CLI Parameters

@@ -114,6 +114,35 @@ The configuration is saved to `lldebugger.config.ts`
-h, --help display help for command
```

## Configuration file lldebugger.config.ts

Example lldebugger.config.ts:

```typescript
import { type LldConfigTs } from "lambda-live-debugger";

export default {
framework: "cdk",
context: ["environment=development"],
region: "eu-central-1",
observable: false,
verbose: false,
//getLambdas: async (foundLambdas) => {
// you can customize the list of lambdas here or create your own
// return foundLambdas;
//},
} satisfies LldConfigTs;
```

The setting are the same as for CLI parameters.

### Custom framework implementation and adjustment

getLambdas: async (foundLambdas) => {
//you can customize the list of lambdas here or create your own
//return foundLambdas;
},

### Debugging

You might want to configure your development tool for debugging. The wizard automatically configures for VsCode in `.vscode/launch.json`. Here is an example:
@@ -142,13 +171,6 @@ For other tools, please send documentation to include here. WebStorm instruction

Set the `subfolder` parameter if your framework is in a subfolder.

## Custom Configuration

getLambdas: async (foundLambdas) => {
//you can customize the list of lambdas here or create your own
//return foundLambdas;
},

## Removing

To remove Lambda Live Debugger from your AWS account

0 comments on commit 5ca1a8d

Please sign in to comment.