Quantcast
Viewing all articles
Browse latest Browse all 9

Answer by Manu NALEPA for Debugging Scrapy Project in Visual Studio Code

Configure your json file like that:

"version": "0.2.0","configurations": [    {"name": "Crawl with scrapy","type": "python","request": "launch","module": "scrapy","cwd": "${fileDirname}","args": ["crawl","<SPIDER NAME>"        ],"console": "internalConsole"    }]

Click on the tab in VSCode corresponding to your spider, then launch a debug session corresponding to the json file.


Viewing all articles
Browse latest Browse all 9

Trending Articles