569532 (7) [Avatar] Offline
#1
When I run the local debugger using VS, I noticed that the environment variables specified in the Launch.json are not taken into consideration, instead [I think] serverless is fetching deployed variables.

(OS: windows)

Am I doing something wrong?

Here are few screenshots.

image

image
Yan Cui (61) [Avatar] Offline
#2
Hi, I think the problem was introduced by a recent update to the serverless framework.

So far the only workaround I have found is to temporarily comment out the environment variables in the serverless.yml whenever you need to invoke the function locally.

I'll report that as an issue in the serverless framework's repo and hopefully it'll be addressed in the future.
Yan Cui (61) [Avatar] Offline
#3
Turns out someone already reported it, keep an eye out for this issue