Skip to content

Commit 132d78c

Browse files
committed
include debug option for scrapy
1 parent fda535e commit 132d78c

2 files changed

Lines changed: 29 additions & 1 deletion

File tree

package.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,32 @@
499499
]
500500
}
501501
},
502+
{
503+
"label": "%python.snippet.launch.scrapy.label%",
504+
"description": "%python.snippet.launch.scrapy.description%",
505+
"body": {
506+
"name": "Scrapy",
507+
"type": "python",
508+
"request": "launch",
509+
"stopOnEntry": true,
510+
"pythonPath": "$${{config:python.pythonPath}}",
511+
"program": "~/.virtualenvs/scrapy/bin/scrapy",
512+
"cwd": "$${{workspaceRoot}}",
513+
"args": [
514+
"crawl",
515+
"specs",
516+
"-o",
517+
"bikes.json"
518+
],
519+
"console": "integratedTerminal",
520+
"env": {},
521+
"envFile": "$${{workspaceRoot}}/.env",
522+
"debugOptions": [
523+
"WaitOnAbnormalExit",
524+
"WaitOnNormalExit"
525+
]
526+
}
527+
},
502528
{
503529
"label": "%python.snippet.launch.attach.label%",
504530
"description": "%python.snippet.launch.attach.description%",

package.nls.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@
1818
"python.snippet.launch.watson.label": "Watson Application",
1919
"python.snippet.launch.watson.description": "Debug a Watson Application",
2020
"python.snippet.launch.attach.label": "Attach Python Debugger",
21-
"python.snippet.launch.attach.description": "Attach the debugger for remote debugging"
21+
"python.snippet.launch.attach.description": "Attach the debugger for remote debugging",
22+
"python.snippet.launch.scrapy.label": "Debug Scrapy",
23+
"python.snippet.launch.scrapy.description": "Scrapy with Integrated Terminal/Console"
2224
}

0 commit comments

Comments
 (0)