Debug Cloud Run Locally - Unable to display children:Error resolving variables
Using PyCharm 2023.3.2. Remote debugging using the Cloud Run config works (stops at breakpoints) but variables in Debugger panel cannot expand:
Unable to display children:Error resolving variables Traceback (most recent call last):
File "/dbg/python/pydevd/python3.11/1ib/python3.11/site-packages/_pydevd bundle/pydevd_resolver.py", line 252, in resolve
return dct[key]
KeyError. ‘0’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/dbg/python/pydevd/python3.11/1ib/python3.11/site-packages/_pydevd_bundle/pydevd_comm.py", line 791, in do_it
type_name, val_dict pydevd_vars.resolve_compound_variable_fields(
…
请先登录再写评论。
Hi Gaelle ! Can you please provide the following to investigate the issue further?
it cannot be reproduced just with a snippet as local debugging works fine.
Reproducing requires a Dockerfile to build image and start container, and the Google Cloud Code plugin. This can easily be reproduced using any code - just set a breakpoint and try to expand a variable.
As said, the error is not in Console but in Debugger. The best I can provide is the following screenshot:
This is very frustrating as it makes remote/container debugging quite useless. Not sure if a limitation in PyCharm or any IDE.
Another limitation I have just found is `Step Over` (F8) works but not `Step In` (F7). I need to open the source of the called function and add a breakpoint for it to stop. Again, no problem when debugging locally but here I need to run in a Docker container because it has all the required dependencies (software I cannot install locally).
Gaelle , can you please collect and share logs from Help | Collect Logs and Diagnostic Data after you hit an error in the debugger?