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