569532 (7) [Avatar] Offline
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.


Yan Cui (68) [Avatar] Offline
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 (68) [Avatar] Offline
Turns out someone already reported it, keep an eye out for this issue