How to use PyCharm to debug Scrapy projects

后端 未结 10 1402
长发绾君心
长发绾君心 2020-12-02 04:00

I am working on Scrapy 0.20 with Python 2.7. I found PyCharm has a good Python debugger. I want to test my Scrapy spiders using it. Anyone knows how to do that please?

<
10条回答
  •  时光取名叫无心
    2020-12-02 04:39

    I am running scrapy in a virtualenv with Python 3.5.0 and setting the "script" parameter to /path_to_project_env/env/bin/scrapy solved the issue for me.

提交回复
热议问题