Open MorganTDicks opened 3 months ago
Does the AWS Toolkit
vscode output channel show messages? AWS Toolkit looks for sam
output to decide if sam
is stuck, since there is no other way to check for activity. If sam cli's output is redirected (by --log-file
), then this could result in AWS Toolkit deciding that sam cli is unresponsive/inactive.
The aws.samcli.lambdaTimeout
setting controls how long AWS Toolkit waits for the "sam build" command. Does increasing this setting resolve your issue?
Problem
I'm trying to run the vs code debugger for a local lambda invocation. It was working fine but when I added the log-file argument "localArguments" property to produce logs locally the invocation started timing out. I have noticed that the log file is created with the following content:
but the function itself does not run.
I am able to get the expected result when using the sam cli, The logs are produced and the function runs successfully with the following command:
sam local invoke --log-file tests/logs/stdout.log --event tests/events/sqs-event.json PolicyIngestionFunction
Steps to reproduce the issue
launch.json:
Directory Tree:
Expected behavior
Expected behavior is that the function would run as if I had triggered it with the cli but with debugging functionality.
System details