FLAMEGPU / FLAMEGPU2

FLAME GPU 2 is a GPU accelerated agent based modelling framework for CUDA C++ and Python
https://flamegpu.com
MIT License
106 stars 22 forks source link

Native Python fn detection failure (in PyCharm's debugger) #1078

Open Robadob opened 1 year ago

Robadob commented 1 year ago

Discussed in https://github.com/FLAMEGPU/FLAMEGPU2/discussions/1076

Python native function's cannot be detected when executed via PyCharm's PyDev debugger.

This is unconfirmed, but seems like the most likely cause based on this stack trace.

The debugger can be installed as a separate module, not 100% sure how to run it via that though.

image

Robadob commented 1 year ago

I can't reproduce this with a clean latest PyCharm install.

PyCharm 2023.1.3 (Professional Edition)
Build #PY-231.9161.41, built on June 20, 2023

Or the same PyCharm build as the original report.

Robadob commented 1 year ago

If investigating this, refer to discussion comments. I've been unable to reproduce and user with failure has checked that the inspect function finds no methods.

Robadob commented 1 year ago

Reporting user has now managed to resolve it locally by enabling "Emulate terminal in output console", will want to readup on this feature see if we can detect it or similar to provide a natural fix.

image