Debugging Terraform CDK with Visual Studio Code (TypeScript)?

Dear Community,

I am seeking assistance with debugging Terraform CDK using Visual Studio Code. While I have found information on how to debug AWS CDK, I have been unable to locate any resources for debugging Terraform CDK.

Could someone please guide me in creating a debug configuration similar to the following example?

{
  "name": "Debug Terraform CDK",
  "type": "node",
  "request": "launch",
  "cwd": "${workspaceFolder}",
  "program": "${workspaceFolder}/node_modules/aws-cdk/lib/cli/bin/cdk.js",
  "args": [
    "synth"
  ],
  "runtimeArgs": [
    "--inspect-brk"
  ],
  "sourceMaps": true,
  "protocol": "inspector",
  "console": "integratedTerminal"
}

Thanks

I found how to debug it. This is the Debug Config for reference:

{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Debug Terraform CDK TypeScript",
      "type": "node",
      "request": "launch",
      "skipFiles": ["<node_internals>/**"],
      "program": "/usr/bin/cdktf",
      "cwd": "${workspaceFolder}",
      "args": ["synth", "--app node_modules/cdktf/lib/app.js"],
      "console": "integratedTerminal",
      "internalConsoleOptions": "neverOpen"
    }
  ]
}