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.