# How to debug Lambda functions with Visual Studio Code

**URL:** <https://discourse.sst.dev/t/how-to-debug-lambda-functions-with-visual-studio-code/2388>\
**Category:** Chapter Comments\
**Created:** [April 30, 2021, 2:41am UTC](https://discourse.sst.dev/t/how-to-debug-lambda-functions-with-visual-studio-code/2388 "2021-04-30T02:41:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [April 30, 2021, 2:41am UTC](https://discourse.sst.dev/t/how-to-debug-lambda-functions-with-visual-studio-code/2388/1 "2021-04-30T02:41:39Z")

</div>

Link to chapter — [How to debug Lambda functions with Visual Studio Code | Serverless Stack](https://serverless-stack.com/examples/how-to-debug-lambda-functions-with-visual-studio-code.html)

---

<div class="post-metadata">

**Author:** ![paultipper](https://avatars.discourse-cdn.com/v4/letter/p/edb3f5/32.png) [@paultipper](https://discourse.sst.dev/u/paultipper)\
**Post date:** [January 11, 2022, 2:48pm UTC](https://discourse.sst.dev/t/how-to-debug-lambda-functions-with-visual-studio-code/2388/2 "2022-01-11T14:48:07Z")

</div>

I’m using python 3.8 as my runtime rather than Node.js; when I run the Debug SST Start debug configuration, the app runs, but breakpoints are not triggered.

Is debugging of Python-based SST apps in Visual Studio Code currently supported?

---

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [January 11, 2022, 7:47pm UTC](https://discourse.sst.dev/t/how-to-debug-lambda-functions-with-visual-studio-code/2388/3 "2022-01-11T19:47:44Z")

</div>

Oh that debug config might be specifically for Node. You might’ve to play around with it.

---

<div class="post-metadata">

**Author:** ![paultipper](https://avatars.discourse-cdn.com/v4/letter/p/edb3f5/32.png) [@paultipper](https://discourse.sst.dev/u/paultipper)\
**Post date:** [January 12, 2022, 9:10am UTC](https://discourse.sst.dev/t/how-to-debug-lambda-functions-with-visual-studio-code/2388/4 "2022-01-12T09:10:35Z")

</div>

Thanks, @jayair . I tried changing the type parameter in the Debug SST Start configuration to “python”, but when I press F5, I get the following:

> **Invalid message: either “program”, “module”, or “code” must be specified**

If anyone has successfully configured their launch.json so that they can successfully debug SST apps that use a Python runtime, please share your launch.json configuration.

---

<div class="post-metadata">

**Author:** ![LambdaBender](https://avatars.discourse-cdn.com/v4/letter/l/a183cd/32.png) [@LambdaBender](https://discourse.sst.dev/u/LambdaBender)\
**Post date:** [August 8, 2024, 3:00pm UTC](https://discourse.sst.dev/t/how-to-debug-lambda-functions-with-visual-studio-code/2388/5 "2024-08-08T15:00:11Z")

</div>

Obviously, this debugging setup doesn’t work anymore for Ion.

The launch.json config needs to change from

```auto
"runtimeArgs": ["start", "--increase-timeout"],

```

to

```auto
"runtimeArgs": ["dev"],

```

to start.

Haven’t figured out how to increase the timeout so far.

Also there is following warning:

```auto
Warning: You are using a global installation of SST but you also have a local installation specified in your package.json. The local installation will be used but you should typically run it through your package manager.

```

I also created an [issue](https://github.com/sst/sst.dev/issues/766) for it.
