Debugger /windows 10/ dbgeng do not work (and "why python?") #8041
Replies: 4 comments 2 replies
-
I am start debugging with old version!!! |
Beta Was this translation helpful? Give feedback.
-
Are you up and running now? The current build in master will work with the current version of pybag, but the 11.3.1 distro (I believe) still needs the older version of pybag. |
Beta Was this translation helpful? Give feedback.
-
Yes, only older version of pybag work....with debugger 11.3.2...I think, that ghidra debugger depend from python is big mistake! |
Beta Was this translation helpful? Give feedback.
-
@skavengeer Glad to hear it's working - keep us posted if you have issues. Re python, I can certainly sympathize. I am not a dyed-in-the-wool python guy myself, and python versioning is a bit of a nightmare. That said, versioning is a nightmare period, and I'm not sure python is any worse than other languages in this regard. When you say "depending on python is a big mistake", is your primary objection depending on some external set of libraries or using python at all? In the 25+ years or so that I've been working on debuggers, a python interface has literally been the most requested feature across versions, so, if the latter, you're in the minority there. The alternative for us is relying on JNA or JNI or writing native plugins for windbg. We've done all of these, and I can say without hesitation those are not better solutions. Happy to discuss this in more detail if you're interested, but basically boils down to more versioning problems, additional build constraints, and a generally brittle environment. x32|64|96dbg relies on the TitanEngine, which is built, if I remember correctly, directly on the native debugging interface. Olly, if I remember correctly, accesses the native interface through COM. IDApro, I believe, also wraps the native DLLs. None of these approaches avoids the versioning problem. Ultimately, you are relying on the Nt/Zw Windows system calls or some wrapper around them. These interfaces are sometimes opaque, vary with service pack, and are essentially only one step closer to a direct connection with the debugger. They call it "DLL hell" for a reason, sadly. In any case, I am going to convert this to a discussion. Feel free to continue the conversation - always interested in others' opinions. And, of course, feel free to open more tickets as issues arise! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
stop work with error
File ".....ghidra_11.3.2_PUBLIC\Ghidra\Debug\Debugger-agent-dbgeng\pypkg\src\ghidradbg\libraries.py", line 20, in
import comtypes
Error: No module named 'comtypes'
No module named 'pybag'
ImportError: cannot import name 'win32' from 'pybag.dbgeng' (....Roaming\Python\Python310\site-packages\pybag\dbgeng_init_.py)
To Reproduce
Steps to reproduce the behavior:
Environment (please complete the following information):
Beta Was this translation helpful? Give feedback.
All reactions