Alex Ewerlöf
Apr 3 · 1 min read

Great article. Just an update: as of serverless 1.40.0 and VS Code 1.32.3, you need to set "autoAttachChildProcesses": true in your launch.json for the debugger to work correctly.

Also a trick that I found useful is to put every function in a file with the same name (directory structure doesn’t matter), then use "-f", "${fileBasenameNoExtention}" in the args instead of "-f", "hello" . This way you can just open the file you want to debug in a tab and press F5 and debug it instead of hard coding the function name in launch.json or making one launch configuration for every function.

    Alex Ewerlöf

    Written by

    TPM/Web Dev

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade