AttributeError: 'instancemethod' object has no attribute '__len__' (bridge.py", line 974)See original GitHub issue
I get a whole lot of the following in the Ghidra console when first connecting initiating a connection to ghidra_bridge. I’m on Windows, running Ghidra in interactive mode. It appears to be working (I’m just getting started), but I get enough of this to overflow the Ghidra console when starting to run a script.
Traceback (most recent call last):
File "C:\Users\eddyw\ghidra_scripts\jfx_bridge\bridge.py", line 974, in local_get
result = getattr(target, name)
AttributeError: 'instancemethod' object has no attribute '__len__'
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
One workaround is to set PyCharm’s variable loading policy to “On demand” (Gear Icon on the left edge of the debugger panel). At least with my quick test just now this gets rid of all the errors in the ghidra_bridge server log. But at the obvious price of having to request the value for a variable if you want to see it in the debugger.
Gotcha. For a single user datapoint, my primary motivator for checking out ghidra_bridge was exclusively for debugging. I’m having trouble getting other debug mechanisms working, so this is currently THE solution that’s working for me. Point being that debugging can be a primary use case for ghidra_bridge.
Thx for taking the time to check it the error messages and providing feedback!