From 08207f06fe08c927d52f8d026e7faa106ad3c2d3 Mon Sep 17 00:00:00 2001 From: tomer doron Date: Wed, 1 Jul 2020 16:10:45 -0700 Subject: [PATCH 1/3] improve LocalDebugging readme motivation: clearer guidelines for using the example changes: fix a few typos, fix incorrect scheme name and add a bit more prose --- Examples/LocalDebugging/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Examples/LocalDebugging/README.md b/Examples/LocalDebugging/README.md index efc3fbf1..25ee92ba 100644 --- a/Examples/LocalDebugging/README.md +++ b/Examples/LocalDebugging/README.md @@ -1,10 +1,10 @@ # Local Debugging Example This sample project demonstrates how to write a simple Lambda function in Swift, -and how to use local debugging techniques that emulate how the Lambda function +and how to use local debugging techniques that simulate how the Lambda function would be invoked by the AWS Lambda Runtime engine. -The example includes three modules: +The example includes an Xcode workspace with three modules: 1. [MyApp](MyApp) is a SwiftUI iOS application that calls the Lambda function. 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 between the iOS application and the Lambda function over HTTP. To try out this example, open the workspace in Xcode and "run" the two targets, -using the relevant `MyLambda` and `MyApp` Xcode schemas. +using the relevant `MyLambda` and `MyApp` Xcode schemes. Start with running the `MyLambda` target. -* Switch to the `MyApp` scheme and select the "My Mac" destination -* Set the `LOCAL_LAMBDA_SERVER_ENABLED` environment variable to `true` by editing the `MyLambda` scheme under `Run`. +* Switch to the `MyLambda` scheme and select the "My Mac" destination +* Set the `LOCAL_LAMBDA_SERVER_ENABLED` environment variable to `true` by editing the `MyLambda` scheme Run/Arguments options. * Hit `Run` * Once it is up you should see a log message in the Xcode console saying `LocalLambdaServer started and listening on 127.0.0.1:7000, receiving events on /invoke` From 9171d4b9e1379d4544f1c8391fae4b91bef6f9cb Mon Sep 17 00:00:00 2001 From: tomer doron Date: Wed, 1 Jul 2020 17:31:42 -0700 Subject: [PATCH 2/3] Update Examples/LocalDebugging/README.md Co-authored-by: Yim Lee --- Examples/LocalDebugging/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples/LocalDebugging/README.md b/Examples/LocalDebugging/README.md index 25ee92ba..8ff097c9 100644 --- a/Examples/LocalDebugging/README.md +++ b/Examples/LocalDebugging/README.md @@ -4,7 +4,7 @@ This sample project demonstrates how to write a simple Lambda function in Swift, and how to use local debugging techniques that simulate how the Lambda function would be invoked by the AWS Lambda Runtime engine. -The example includes an Xcode workspace with three modules: +The example includes a Xcode workspace with three modules: 1. [MyApp](MyApp) is a SwiftUI iOS application that calls the Lambda function. 2. [MyLambda](MyLambda) is a SwiftPM executable package for the Lambda function. From b4fa887aaa0b37312467fc4632c4e9124ff014d7 Mon Sep 17 00:00:00 2001 From: tomer doron Date: Wed, 1 Jul 2020 17:33:10 -0700 Subject: [PATCH 3/3] Update Examples/LocalDebugging/README.md --- Examples/LocalDebugging/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples/LocalDebugging/README.md b/Examples/LocalDebugging/README.md index 8ff097c9..25ee92ba 100644 --- a/Examples/LocalDebugging/README.md +++ b/Examples/LocalDebugging/README.md @@ -4,7 +4,7 @@ This sample project demonstrates how to write a simple Lambda function in Swift, and how to use local debugging techniques that simulate how the Lambda function would be invoked by the AWS Lambda Runtime engine. -The example includes a Xcode workspace with three modules: +The example includes an Xcode workspace with three modules: 1. [MyApp](MyApp) is a SwiftUI iOS application that calls the Lambda function. 2. [MyLambda](MyLambda) is a SwiftPM executable package for the Lambda function.