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

Commit

Permalink
Fix #1130: New debugger displays warnings about `speeds using cython …
Browse files Browse the repository at this point in the history
…not found` (#1132)

Comment out the prints in pydevd.
  • Loading branch information
int19h committed Jan 29, 2019
1 parent 46856c0 commit 3217aa8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/ptvsd/_vendored/force_pydevd.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# # due to heavy use of "from" in them.
with vendored('pydevd'):
pydevd_constants = import_module('_pydevd_bundle.pydevd_constants')
# Disable this, since we aren't packaging the Cython modules at the moment.
# TODO: figure out what the appropriate setting is to work for both wheels and sdist.
pydevd_constants.CYTHON_SUPPORTED = False
# We limit representation size in our representation provider when needed.
pydevd_constants.MAXIMUM_VARIABLE_REPRESENTATION_SIZE = 2**32
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@ def delete_old_compiled_extensions():

except ImportError:
from _pydevd_bundle.pydevd_trace_dispatch_regular import trace_dispatch, global_cache_skips, global_cache_frame_skips, fix_top_level_trace_and_get_trace_func # @UnusedImport
from _pydev_bundle.pydev_monkey import log_error_once
#from _pydev_bundle.pydev_monkey import log_error_once

log_error_once("warning: Debugger speedups using cython not found. Run '\"%s\" \"%s\" build_ext --inplace' to build." % (
sys.executable, os.path.join(dirname, 'setup_cython.py')))
#log_error_once("warning: Debugger speedups using cython not found. Run '\"%s\" \"%s\" build_ext --inplace' to build." % (
# sys.executable, os.path.join(dirname, 'setup_cython.py')))
pass

else:
raise RuntimeError('Unexpected value for PYDEVD_USE_CYTHON: %s (accepted: YES, NO)' % (use_cython,))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@

dirname = os.path.dirname(os.path.dirname(__file__))
if not IS_PYCHARM:
log_error_once("warning: Debugger speedups using cython not found. Run '\"%s\" \"%s\" build_ext --inplace' to build." % (
sys.executable, os.path.join(dirname, 'setup_cython.py')))
#log_error_once("warning: Debugger speedups using cython not found. Run '\"%s\" \"%s\" build_ext --inplace' to build." % (
# sys.executable, os.path.join(dirname, 'setup_cython.py')))
pass
else:
show_frame_eval_warning = True

Expand Down

0 comments on commit 3217aa8

Please sign in to comment.