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. 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}\"" } } ],