Open ThuF opened 1 year ago
Thank you for the thoughtful bug report!
- I'm able to debug until line 26 (
const result = await dynamoDB.send(command);
), where the DynamoDB table is being queried.- After I press Step Over or Continue with breakpoint on the next line, the debug session suddenly stops and I don't get the results from the DynamoDB.
Hi @justinmk3
No, it seems that the process exits. Instead of performing a get query, I've tried to insert records in the DynamoDB table - the process exits and there are no records in the table. Also I've tried to console.log()
or writeFileSync()
after the call to the DynamoDB, but nothing happens.
All I get is the following message in the Debug Console:
END RequestId: dd2ce95f-bc80-4153-aa8d-8ec01497b924
REPORT RequestId: dd2ce95f-bc80-4153-aa8d-8ec01497b924 Init Duration: 2.56 ms Duration: 26659.14 ms Billed Duration: 26660 ms Memory Size: 128 MB Max Memory Used: 128 MB
I've also tried to List Buckets from S3, but it's the same behaviour.
I don't have installed WebStorm, could give it a try.
Regards, Yordan
System details (run the
AWS: About Toolkit
command)Darwin arm64 22.2.0
1.74.3
1.61.0
16.14.2
19.1.8
Question
Hi,
I'm trying to debug a lambda function with an
aws-sam
debug config for VSCode. The lambda function is part of anAWS CDK
deployment. The function is fairly simple, it just reads some data from aDynamoDB
table:After synthesizing the CDK (
cdk synth
) and executing the following command via SAM, I'm able to run the lambda locally (the lambda is exposed at the correct path and the data is fetched from the remote AWS DynamoDB table):However, if I try to debug the the lambda function with the following launch config, I got this:
const result = await dynamoDB.send(command);
), where the DynamoDB table is being queried.Here is the log from the debug session:
Regards, Yordan