From 442033d5d0fcf2e0b1487575bf67219214bbbe89 Mon Sep 17 00:00:00 2001 From: Don Jayamanne Date: Fri, 16 Mar 2018 10:48:21 -0700 Subject: [PATCH 1/2] :sparkles: add pyspark debug configuration --- package.json | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 96fbb30580c6..eb9079734e02 100644 --- a/package.json +++ b/package.json @@ -771,21 +771,33 @@ "description": "%python.snippet.launch.django.description%", "body": { "name": "Django", - "type": "python", + "type": "pythonExperimental", "request": "launch", - "pythonPath": "^\"\\${config:python.pythonPath}\"", "program": "^\"\\${workspaceFolder}/manage.py\"", - "cwd": "^\"\\${workspaceFolder}\"", - "console": "integratedTerminal", - "internalConsoleOptions": "neverOpen", "args": [ "runserver", "--noreload", "--nothreading" - ], - "env": {}, - "envFile": "^\"\\${workspaceFolder}/.env\"", - "debugOptions": [] + ] + } + }, + { + "label": "Python Experimental: PySpark", + "description": "%python.snippet.launch.pyspark.description%", + "body": { + "name": "PySpark", + "type": "pythonExperimental", + "request": "launch", + "osx": { + "pythonPath": "^\"\\${env:SPARK_HOME}/bin/spark-submit\"" + }, + "windows": { + "pythonPath": "^\"\\${env:SPARK_HOME}/bin/spark-submit.cmd\"" + }, + "linux": { + "pythonPath": "^\"\\${env:SPARK_HOME}/bin/spark-submit\"" + }, + "program": "^\"\\${file}\"" } } ], From 599c2beb8decab1178ffa9ff815fd445353ecb92 Mon Sep 17 00:00:00 2001 From: Don Jayamanne Date: Fri, 16 Mar 2018 10:49:21 -0700 Subject: [PATCH 2/2] :memo: add news entry --- news/1 Enhancements/1029.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 news/1 Enhancements/1029.md diff --git a/news/1 Enhancements/1029.md b/news/1 Enhancements/1029.md new file mode 100644 index 000000000000..9da8383fe46d --- /dev/null +++ b/news/1 Enhancements/1029.md @@ -0,0 +1 @@ +Add a PySpark debug configuration for the experimental debugger.