Skip to content

Commit b8834b2

Browse files
authored
improve LocalDebugging readme (#137)
motivation: clearer guidelines for using the example changes: fix a few typos, fix incorrect scheme name and add a bit more prose
1 parent 5130278 commit b8834b2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Examples/LocalDebugging/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Local Debugging Example
22

33
This sample project demonstrates how to write a simple Lambda function in Swift,
4-
and how to use local debugging techniques that emulate how the Lambda function
4+
and how to use local debugging techniques that simulate how the Lambda function
55
would be invoked by the AWS Lambda Runtime engine.
66

7-
The example includes three modules:
7+
The example includes an Xcode workspace with three modules:
88

99
1. [MyApp](MyApp) is a SwiftUI iOS application that calls the Lambda function.
1010
2. [MyLambda](MyLambda) is a SwiftPM executable package for the Lambda function.
@@ -16,11 +16,11 @@ debug-only local lambda engine simulator which starts a local HTTP server enabli
1616
between the iOS application and the Lambda function over HTTP.
1717

1818
To try out this example, open the workspace in Xcode and "run" the two targets,
19-
using the relevant `MyLambda` and `MyApp` Xcode schemas.
19+
using the relevant `MyLambda` and `MyApp` Xcode schemes.
2020

2121
Start with running the `MyLambda` target.
22-
* Switch to the `MyApp` scheme and select the "My Mac" destination
23-
* Set the `LOCAL_LAMBDA_SERVER_ENABLED` environment variable to `true` by editing the `MyLambda` scheme under `Run`.
22+
* Switch to the `MyLambda` scheme and select the "My Mac" destination
23+
* Set the `LOCAL_LAMBDA_SERVER_ENABLED` environment variable to `true` by editing the `MyLambda` scheme Run/Arguments options.
2424
* Hit `Run`
2525
* Once it is up you should see a log message in the Xcode console saying
2626
`LocalLambdaServer started and listening on 127.0.0.1:7000, receiving events on /invoke`

0 commit comments

Comments
 (0)