Hello everyone
Looking for suggestion on debugging under VSCODE.
import debugpy
debugpy.listen(("localhost", 5678))
print("Waiting for debugger attach...")
debugpy.wait_for_client() # Only include this line if you want the script to pause until the debugger is attached.
print("Debugger attached."
set up the configuration and attached.
Breakpoints are skipped and I see
pulumi:pulumi:Stack (app-dev):
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
asked ChatGPT for suggestion with Pulumi and it hallucinated the
--exec option. which aparently does not exist..
PYTHONPATH=$(python -c "import sys; print(':'.join(sys.path))") pulumi up --exec "python -Xfrozen_modules=off __main__.py"
Any pointers ?? thank you