In order to execute the typical scrapy runspider <PYTHON_FILE>
command you must to set the following config into your launch.json
:
{"version": "0.1.0","configurations": [ {"name": "Python: Launch Scrapy Spider","type": "python","request": "launch","module": "scrapy","args": ["runspider","${file}" ],"console": "integratedTerminal" } ]}
Set the breakpoints wherever you want and then debug.