Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

479
Views
How to Debug AWS python lambdas using serverless offline through VS Code?

I'm trying to figure out a way to debug AWS python lambdas in VS Code using the serverless framework and serverless offline. I have gotten to the point where I can run the lambdas in VS Code, but I can't set breakpoints. I'm not sure if this is possible, but from what I've read, it seems like it may be. If anyone can help, it would be much appreciated.

This is my current launch.json:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Debug",
            "type": "node",
            "request": "launch",
            "cwd": "${workspaceRoot}",
            "runtimeExecutable": "npm",
            "runtimeArgs": [
                "run-script",
                "debug"
            ],
            "port": 9229,
        }
    ]
}

Scripts section of package.json is as follows:

"scripts": {
    "start": "./node_modules/.bin/serverless offline -s dev",
    "debug": "export SLS_DEBUG=* && node --inspect ./node_modules/.bin/serverless offline -s dev"
  }

Again, this setup works. I just would like the ability to set breakpoints in my .py files. When I hover over the breakpoints in the left gutter, they're greyed out and read Breakpoint ignored because generated code not found (source map problem?). I'm not sure how to get around this, given that python files don't have source maps. I tried setting the outfile field of launch.json to be the python files themselves, but that obviously didn't work.

Thanks in advance to those of you that are able to help.

NOTE: I know there is a way to get this to work with AWS SAM CLI, but unfortunately, that is not an option for me. Must be serverless framework.

EDIT: I thought this should be possible, however, the more I look into it, the more skeptical I become. If you can even inform for certain that this is not possible, it would be much appreciated! I've been hunting around for a while now with no further developments.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!