https://pulumi.com logo
#python
Title
# python
q

quiet-plastic-34312

12/21/2021, 2:01 PM
Hi Folks there any way to run a python pulumi code as a python code to use debug line by line ... when i try run it i get a "pulumi.errors.RunError: Program run without the Pulumi engine available; re-run using the
pulumi
CLI"
g

great-sunset-355

12/21/2021, 2:24 PM
It's possible but very awkward and complicated. The only way to hook into the running code is connect your debugger to the python process that is started by pulumi runtime. IIUTC This is common in .NET and Visual studio does it but not in python.
q

quiet-plastic-34312

12/21/2021, 3:00 PM
i tryed that, but looks like every run it roll on a diferent pid, there any way to get the python process number or fix to run on a same number?
ok i got how it works... and make it works... TY @great-sunset-355
there any way to stop at break points? i atatch but still cant use break points or inspect variables