In a bash shell, build a debug version of this provider binary:
make build-debug
In Visual Studio Code, start the provider in a debug session.
In a new bash shell, go into your terraform project directory, and run
terraform with TF_REATTACH_PROVIDERS
set to the value printed in the VSCode debug windows.