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

Debugging Scrapy Project in Visual Studio Code

$
0
0

I have Visual Studio Code on a Windows Machine, on which I am making a new Scrapy Crawler. The crawler is working fine but I want to debug the code, for which I am adding this in my launch.json file:

{"name": "Scrapy with Integrated Terminal/Console","type": "python","request": "launch","stopOnEntry": true,"pythonPath": "${config:python.pythonPath}","program": "C:/Users/neo/.virtualenvs/Gers-Crawler-77pVkqzP/Scripts/scrapy.exe","cwd": "${workspaceRoot}","args": ["crawl","amazon","-o","amazon.json"    ],"console": "integratedTerminal","env": {},"envFile": "${workspaceRoot}/.env","debugOptions": ["RedirectOutput"    ]}

But I am unable to hit any breakpoints.PS: I took the JSON script from here: http://www.stevetrefethen.com/blog/debugging-a-python-scrapy-project-in-vscode


Viewing all articles
Browse latest Browse all 9

Trending Articles





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