Quantcast
Channel: Debugging Scrapy Project in Visual Studio Code - Stack Overflow
Viewing all articles
Browse latest Browse all 9

Answer by Peter.Wang for Debugging Scrapy Project in Visual Studio Code

$
0
0

Don't need to modify the launch.json, the default "Python: Current File (Integrated Terminal)" works perfectly. For the Python3 project, remember to place the runner.py file at the same level as the scrapy.cfg file (which is the project root).

The runner.py code as @naqushab does above. Note the processs.crawl(className), where the className is the spiders class that you want to set the breakpoint at.


Viewing all articles
Browse latest Browse all 9

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>