PyCharm debugger not displaying variables and hanging when resuming program

已回答

Details: I am experiencing an issue with PyCharm's debugger. I am running PyCharm on macOS M2 and have tried reinstalling it, but the issue persists. The problem occurs when I run any integration test pipeline in debugging mode; the code stops at the first breakpoint, but I am unable to see any variables. Additionally, if there are any collection objects in scope at the time the breakpoint is hit, the debugger says "Collecting data..." instead of showing me the value of the variable. When I try to resume the program, it shows "continue" but hangs there.

My PyCharm version is pycharm-community-2023.3.5, and the Python version I am using is 3.8

0
正式评论

Hi there

As this is an older topic and your issue looks very specific to your environment, would you please raise a new youtrack issue for thorough investigation ? 

 

Please provide:

- your OS architecture:

- detailed  steps used to install tvm

- IDE Logs (The logs can be provided from Help -> Collect Logs and diagnostics data)

 

Kind regards,

 

Please try to create a new project on the latest 2024.1.3 PyCharm version and let me know in case the issue persists. If it does, provide the code sample so we can try to reproduce it from our side.

0

I'm having this exact same issue. I'm going to try recreating my conda environment. This is the first time I've seen this problem with PyCharm. I made sure to toggle the `Gevent compatible` flag on but this didn't make a difference.

0

I created a new environment on a fresh node and the problem went away. Same process. Very weird!

Is there a way to purge all files Pycharm has on a specific remote machine? My guess is something was sticking around and gumming things up…

0

Hi Rylanschaeffer

Is there a way to purge all files Pycharm has on a specific remote machine?

Aside from venv directory PyCharm stores helpers for SSH interpreters under ~/.pycharm_helpers. You can try to clean up this directory as well.

0

Hello friends. I am sharing what I learned from another topic. As far as I understand, there should be no foreign characters in the project name or project directory. For my friend, this is the "&" character. For me, this is the "İ" character. Happy coding.
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360005084440-PyCharm-Debugging-frame-not-available-and-Won-t-Step-Over

0

Simply reproduced by using several lines:

```

import tvm

a = 2

var = tvm.relax.Var("hh", tvm.relax.TensorStructInfo([1,2], dtype="float32"))

b = 2

```

The debugger breaks normally at the line a = 2. However, right after executing the tvm.relax.Var line, the frame becomes unavailable, and the debugger only shows “Collecting data...”.

 

I'm on a mac with tvm version 0.19. Reproduces 100% of the time.

Reproduces using all versions of PyCharm professional from 2023 to 2025.

finally:

0

请先登录再写评论。