Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion python/conf_vscode/sitecustomize.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
import os
import sys

if "DEBUGPY_ADAPTER_ENDPOINTS" in os.environ and not any("debugpy" in arg for arg in sys.argv):
if (
"DEBUGPY_ADAPTER_ENDPOINTS" in os.environ and
not any("debugpy" in arg for arg in sys.orig_argv)
):

def install_debugpy():
import debugpy
Expand Down
6 changes: 6 additions & 0 deletions python/run-with-vscode-breakpoints
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ if ! python3 -c "import debugpy" 2>/dev/null; then
exit 1
fi

# If lib/pyspark.zip exists, issue a warning
if [ -f "$FWDIR/lib/pyspark.zip" ]; then
echo "Warning: lib/pyspark.zip exists. VSCode debugger won't pick up your breakpoints in workers."
echo "You can remove it to avoid potential issues."
fi

# If --hook-daemon is in the arguments, set the env variable to hook the daemon process
# Daemon is not hooked by default to avoid potential fork issues
new_args=()
Expand Down