- Install dlv - https://github.com/go-delve/delve/tree/master/Documentation/installation
- Compile and link k8s provider with optimizations off - https://github.com/pulumi/pulumi-kubernetes/commit/3681117730a6440d89e697bc6ae46141fb965d8d (
make build && make install && yarn link "@pulumi/kubernetes"
) - Compile pulumi/pulumi with dlv WIP - https://github.com/pulumi/pulumi/commit/50414ca053981af7560b17df72a0251b9ac2ec03 (
make build && make install
) - Run the dlv WIP pulumi binary (
~/go/bin/pulumi up --logtostderr -v4 --logflow
) - Connect GoLand remote debugger to
localhost:2345
Current Limitations:
- Only works for k8s provider
- Attaches to first launched process of the k8s provider