PyCharm debugging Spider via cmdline.py; Break points not hitting

I've been trying to debug my spider while using PyCharm. I created a run configuration and I put the script as scrapy/cmdline.py. The script parameters are "crawl a_spider". The working directory is my project. None of my breakpoints in my project are hitting. The only breakpoints that work are in cmdline.py.  The last line that I can debug is:

scrapy/crawler.py:
CrawlerProcess(Crawler):
def start(self):
   [ . . . ]
   reactor.run(installSignalHandlers=False) # blocking call


Is there some forking or processing splitting that I'm unaware of when you use cmdline.py? The debugger might not be detecting it or connecting to the new process. I have enabled with the debugger attach to new processes.

Has anyone else had success? Before the debugger goes into the abyss is there a way I can instruct the debugger to dumb out what the active breakpoints are?

Environment:
OS X 10.9.1
Python 2.7.5
Scrapy==0.18.0
Twisted==13.1.0


Vinay
1 comment
Comment actions Permalink
Hi vinayan3,

Please create an issue in our tracker with your log files attaches. Unfortunately, issues with debugger is hardly reproducible so please provide as many info as possible so we can reproduce.
0

Please sign in to leave a comment.