用pycharm调试idapython脚本

首先

python.exe -m pip install pydevd
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting pydevd
  Downloading https://files.pythonhosted.org/packages/8c/72/0d3dd5e97de4cb8f85324db45b33fc30744b08bc889fd0c6bea5194a4b9b/pydevd-1.9.0-cp27-cp27m-win_amd64.whl (1.9MB)
     |████████████████████████████████| 1.9MB 609kB/s
Installing collected packages: pydevd
  WARNING: The script pydevd.exe is installed in 'C:\Python27\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pydevd-1.9.0
WARNING: You are using pip version 19.1.1, however version 20.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

然后在pycharm中这样设置

用pycharm调试idapython脚本_第1张图片

然后设置

要调试的

用pycharm调试idapython脚本_第2张图片

这句话相当于插入一个断点

最后先运行pycharm 端的先等到起,然后打开ida即可。

你可能感兴趣的:(经验,python,debug)