Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Empty stack traces. Fixes #1006 (#1011)
Browse files Browse the repository at this point in the history
  • Loading branch information
karthiknadig authored Nov 13, 2018
1 parent 50a2ac5 commit 96255d8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions ptvsd/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,10 @@ def dont_trace_ptvsd_files(file_path):

pydevd_frame.file_tracing_filter = dont_trace_ptvsd_files


STDLIB_PATH_PREFIXES = [os.path.normcase(sys.prefix)]
if hasattr(sys, 'base_prefix'):
STDLIB_PATH_PREFIXES.append(os.path.normcase(sys.base_prefix))
if hasattr(sys, 'real_prefix'):
STDLIB_PATH_PREFIXES.append(os.path.normcase(sys.real_prefix))

# NOTE: Previously this included sys.prefix, sys.base_prefix and sys.real_prefix
# On some systems those resolve to '/usr'. That means any user code will
# also be treated as library code.
STDLIB_PATH_PREFIXES = []
if hasattr(site, 'getusersitepackages'):
site_paths = site.getusersitepackages()
if isinstance(site_paths, list):
Expand Down

0 comments on commit 96255d8

Please sign in to comment.