x64dbg / x64dbgpy

Automating x64dbg using Python, Snapshots:
https://ci.appveyor.com/project/mrexodia/x64dbg-python/build/artifacts
MIT License
1.47k stars 70 forks source link

PyCharm integration #47

Open erches opened 4 years ago

erches commented 4 years ago

Hello I try to develop py scripts using PyCharm 2019.2.4. I've done a few steps.

  1. Install Python 2.7.11 x86/x64
  2. Copied x64dbgpy folder (from https://ci.appveyor.com/api/buildjobs/ox7q0prke28vlt0f/artifacts/release.zip) to site-package Python27 directory
  3. Copied PyQt5 folder with sip.pyd file to the same directory

When I ran my script I have the next error: DLL Load Failed 'x64dbgpy.pluginsdk._x64dbg'. Can you help me? Thanks

mrexodia commented 4 years ago

You have to attach PyCharm to x64dbg. There is no way to start a script from PyCharm, because x64dbg uses its own python interpreter instance.

erches commented 4 years ago

I've launched x64dbg then ran scripts but PyCharm did't see anything to attach :(

Сould you send me the right way to develop py scripts for x64dbg? It will be great if there is an opportunity to debug in real time.

mrexodia commented 4 years ago

I did some searching in the past, but if the process is not named python I think pycharm ignores it per default. I think you should start connecting the python command line debugger somehow and go from there. I never actually got it to work myself

On Wed, 22 Apr 2020 at 20:37, erches notifications@github.com wrote:

I've launched x64dbg then ran scripts but PyCharm did't see anything to attach :(

Сould you send me the right way to develop py scripts for x64dbg? It will be great if there is an opportunity to debug in real time.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/x64dbg/x64dbgpy/issues/47#issuecomment-617957016, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASYFGP7WWCDDOAUU3ZGUWDRN42OVANCNFSM4MOHREIQ .