Deployment Integrations
On-premise Integrations
Platform Integrations

VSCode Plugin

Thundra Debugger on VSCode

Installation

  • Install the extension from the VSCode marketplace.

  • Sign up for Thundra and select Thundra Debugger to get your authentication key. If you’ve already signed up, you can get your key from the settings page.

  • Open the Command Palette (⇧⌘P) and select Thundra: Edit Configuration command to modify the configuration file.

Thundra Debugger Commanda Palette
  • Set your authentication key to the variable authToken in your Thundra configuration file.

debug-client.json
{
"profiles": {
"default": {
"debugger": {
"authToken": <set-your-thundra-auth-token>,
"sessionName": "default",
"brokerHost": "debug.thundra.io",
"brokerPort": 443
}
}
}
}

How to use

  • Set a debug point on your AWS Lambda function.

  • Execute the command Thundra: Start Debugger to start the debug session. (You can also achieve the same by clicking on Start Thundra Debugger button on the Status Bar.)

VSCode Status Bar
  • Now invoke your AWS Lambda function to hit on the debug point.

  • Debug session ends when your AWS Lambda function times out. You can update the timeout of your function for longer debug sessions.

  • To manage your Thundra Debugger profiles:

    • Open Thundra configuration file by executing the command Thundra: Edit Configuration.

    • Add new profiles to the file as shown below.

Thundra Debugger Profile
  • You can change your active profile by executing the command Thundra: Change active profile to use Thundra Debugger with different configurations.

Change Active Profile

In order to start with a different session name quickly:

  • Execute the command Thundra: Start Thundra debugger (with a session name)

  • Enter a unique session name. This doesn’t make changes to the configuration file.

  • Invoke the Lambda function and start debugging.

Commands

Command

Description

Thundra: Start Debugger

Starts the debugger with current profile's settings.

Thundra: Start Debugger (with a session name)

Starts the debugger with the given session name.

Thundra: Change active profile

Changes the active profile to the one given in your config file.

Thundra: Edit configuration

Opens configuration file containing your debugger configuration to edit.

You can access all of the above commands from the command palette (Cmd+Shift+P or Ctrl+Shift+P).