You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for this great integration!
I'm trying to contribute to the code, but I'm unable to attach the debugger to the task.
The steps I'm using:
Fork the repo and start the dev container
Run the task "Run Home Assistant on port 8123"
Call "Remote Python Debugger: Start" in HA Service Calls
In the terminal, I'm not getting "It seems that frozen modules are being used..."
When running the "Python: Attach Local" launch, the debugger starts but I'm unable to hit any breakpoints. E.g. a breakpoint under custom_components/heru/switch.py. When modifying the code and restarting the task, I can see that the debug logs are getting updated with the new code.
I suspect that the code that is being run is the copied code under .devcontainer/hass/custom_components/heru/switch.py instead of custom_components/heru/switch.py.
I've tried to update the .devcontainer to use: "image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.11-bullseye"
and "remoteUser": "vscode" but that didn't help.
Can you help me figure out what I'm missing to be able to debug the code?
Thanks!
Debug log
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.
2024-04-26 09:21:12.201 WARNING (MainThread) [homeassistant.components.debugpy] Waiting for remote debug connection on 0.0.0.0:5678
2024-04-26 09:21:21.974 WARNING (MainThread) [homeassistant.setup] Setup of debugpy is taking over 10 seconds.
The text was updated successfully, but these errors were encountered:
Version of the custom_component
Latest version of master
Configuration
Describe your configuration here.
VSCode on M2 (Apple Silicon)
Describe the bug
Thank you for this great integration!
I'm trying to contribute to the code, but I'm unable to attach the debugger to the task.
The steps I'm using:
When running the "Python: Attach Local" launch, the debugger starts but I'm unable to hit any breakpoints. E.g. a breakpoint under
custom_components/heru/switch.py
. When modifying the code and restarting the task, I can see that the debug logs are getting updated with the new code.I suspect that the code that is being run is the copied code under
.devcontainer/hass/custom_components/heru/switch.py
instead ofcustom_components/heru/switch.py
.I've tried to update the .devcontainer to use:
"image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.11-bullseye"
and
"remoteUser": "vscode"
but that didn't help.Can you help me figure out what I'm missing to be able to debug the code?
Thanks!
Debug log
The text was updated successfully, but these errors were encountered: