Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

480
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda