Patrick Gold
10/26/2021, 6:16 PM/packages/backend/src/services
and I’m launching sst start
using the vscode launch script. That works fine. I can see in the logs that the requests are coming through and the handlers are being called, but my breakpoints in VSCode are never hit. Additionally, every time they are called, esbuild seemingly is compiling the handlers before responding (It shows so in the terminal). I don’t believe it was doing that previously. I’m wondering if it has something to do with the new file organization structure and if I need to modify an sst config somewhere. I’ve seen the yarn monorepo example and nothing stood out to me. Any advice would be welcome!Patrick Gold
10/26/2021, 6:18 PMDebugger attached.
Waiting for the debugger to disconnect...
Waiting for the debugger to disconnect...
2021-10-26T18:10:19.220Z undefined INFO Executing '.build/src/services/main.handler' in function directory '<obfuscated>/packages/backend'
- /<obfuscated>/.npm/_npx/83619/lib/node_modules/aws-lambda-ric/bin/index.jslient/index.jslient.jsuntime-client.node'
2021-10-26T18:10:19.288Z undefined INFO Executing '.build/src/services/main.handler' in function directory '<obfuscated>/packages/backend'
- /<obfuscated>/.npm/_npx/83613/lib/node_modules/aws-lambda-ric/bin/index.jslient/index.jslient.jsuntime-client.node'
Patrick Gold
10/26/2021, 6:19 PMPatrick Gold
10/26/2021, 6:37 PMPatrick Gold
10/26/2021, 6:46 PMPatrick Gold
10/26/2021, 11:16 PMPatrick Gold
10/27/2021, 12:12 AMPatrick Gold
10/27/2021, 12:12 AMFrank
Frank
Patrick Gold
10/27/2021, 1:18 AMFrank
Frank
thdxr
10/27/2021, 1:22 AMPatrick Gold
10/27/2021, 1:22 AMthdxr
10/27/2021, 1:23 AMPatrick Gold
10/27/2021, 1:24 AMFrank
the requests are coming through and the handlers are being calledDid you see something like this in ur terminal when a request came in?
42cb9618-828c-42d3-94f5-45f91ed9c771 REQUEST name-of-the-lambda [src/lambda.main] invoked
And did the function ran fine afterwards, ie. printed out the response
42cb9618-828c-42d3-94f5-45f91ed9c771 RESPONSE {"statusCode":200,"body":"hi"}
esbuild seemingly is compiling the handlers before responding (It shows so in the terminal)Was the compiling output shown before the
REQUEST
line?Frank
Patrick Gold
10/27/2021, 1:26 AMPatrick Gold
10/27/2021, 1:26 AMPatrick Gold
10/27/2021, 1:27 AMPatrick Gold
10/27/2021, 1:28 AMFrank