OpsLevel / terraform-provider-opslevel

Terraform provider for OpsLevel.com
https://registry.terraform.io/providers/OpsLevel/opslevel/latest/docs
MIT License
8 stars 5 forks source link

add debug tasks for interactive debugging #447

Closed davidbloss closed 2 months ago

davidbloss commented 2 months ago

Issues

Changelog

Enable interactive debugging with breakpoints 🔬 Docs here

Tophatting

After setting up workspace/main.tf

  1. In first terminal run task debug-start (or task dbg1)
  2. In second terminal run task debug-attach (or task dbg2)
    • Set breakpoints, try b <path-to-file>:<line number>
  3. In third terminal run task debug-plan or task debug-apply
  4. Return to second terminal and press c to continue