mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Merge branch 'master' into tpn
This commit is contained in:
commit
4746d22ae1
4 changed files with 13 additions and 11 deletions
|
|
@ -36,12 +36,10 @@ TRACE_PROPERTY = 'pydevd_traceproperty.py'
|
|||
get_file_type = DONT_TRACE.get
|
||||
|
||||
|
||||
def handle_breakpoint_condition(py_db, info, breakpoint, new_frame, default_return_value):
|
||||
def handle_breakpoint_condition(py_db, info, breakpoint, new_frame):
|
||||
condition = breakpoint.condition
|
||||
try:
|
||||
val = eval(condition, new_frame.f_globals, new_frame.f_locals)
|
||||
if not val:
|
||||
return default_return_value
|
||||
return eval(condition, new_frame.f_globals, new_frame.f_locals)
|
||||
|
||||
except:
|
||||
if type(condition) != type(''):
|
||||
|
|
@ -559,10 +557,9 @@ class PyDBFrame:
|
|||
if stop or exist_result:
|
||||
condition = breakpoint.condition
|
||||
if condition is not None:
|
||||
result = handle_breakpoint_condition(main_debugger, info, breakpoint, new_frame,
|
||||
self.trace_dispatch)
|
||||
if result is not None:
|
||||
return result
|
||||
result = handle_breakpoint_condition(main_debugger, info, breakpoint, new_frame)
|
||||
if not result:
|
||||
return self.trace_dispatch
|
||||
|
||||
if breakpoint.expression is not None:
|
||||
handle_breakpoint_expression(breakpoint, info, new_frame)
|
||||
|
|
|
|||
|
|
@ -28,7 +28,9 @@ def handle_breakpoint(frame, thread, global_debugger, breakpoint):
|
|||
condition = breakpoint.condition
|
||||
info = thread.additional_info
|
||||
if condition is not None:
|
||||
handle_breakpoint_condition(global_debugger, info, breakpoint, new_frame, False)
|
||||
result = handle_breakpoint_condition(global_debugger, info, breakpoint, new_frame)
|
||||
if not result:
|
||||
return False
|
||||
|
||||
if breakpoint.expression is not None:
|
||||
handle_breakpoint_expression(breakpoint, info, new_frame)
|
||||
|
|
|
|||
|
|
@ -479,7 +479,7 @@ class VSCodeMessageProcessor(ipcjson.SocketIO, ipcjson.IpcChannel):
|
|||
{
|
||||
'filter': 'raised',
|
||||
'label': 'Raised Exceptions',
|
||||
'default': 'true'
|
||||
'default': 'false'
|
||||
},
|
||||
{
|
||||
'filter': 'uncaught',
|
||||
|
|
|
|||
5
setup.py
5
setup.py
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import os
|
||||
import os.path
|
||||
from setuptools import setup
|
||||
from setuptools import setup, Extension
|
||||
|
||||
ROOT = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
|
|
@ -40,4 +40,7 @@ setup(name='ptvsd',
|
|||
'License :: OSI Approved :: MIT License'],
|
||||
packages=['ptvsd'],
|
||||
package_data={'ptvsd': list(get_pydevd_package_data()) + ['ThirdPartyNotices.txt']},
|
||||
ext_modules=[Extension('ptvsd.pydevd._pydevd_bundle.pydevd_cython',
|
||||
['ptvsd/pydevd/_pydevd_bundle/pydevd_cython.c'],
|
||||
optional=True)],
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue