Quantcast
Viewing all articles
Browse latest Browse all 9

Answer by cpinamtz for Debugging Scrapy Project in Visual Studio Code

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.


Viewing all articles
Browse latest Browse all 9

Trending Articles