MCPcopy Index your code
hub / github.com/fabioz/PyDev.Debugger / PyDevdAPI

Class PyDevdAPI

_pydevd_bundle/pydevd_api.py:99–1164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97
98
99class PyDevdAPI(object):
100 class VariablePresentation(object):
101 def __init__(self, special="group", function="group", class_="group", protected="inline"):
102 self._presentation = {
103 DAPGrouper.SCOPE_SPECIAL_VARS: special,
104 DAPGrouper.SCOPE_FUNCTION_VARS: function,
105 DAPGrouper.SCOPE_CLASS_VARS: class_,
106 DAPGrouper.SCOPE_PROTECTED_VARS: protected,
107 }
108
109 def get_presentation(self, scope):
110 return self._presentation[scope]
111
112 def run(self, py_db):
113 py_db.ready_to_run = True
114
115 def notify_initialize(self, py_db):
116 py_db.on_initialize()
117
118 def notify_configuration_done(self, py_db):
119 py_db.on_configuration_done()
120
121 def notify_disconnect(self, py_db):
122 py_db.on_disconnect()
123
124 def set_protocol(self, py_db, seq, protocol):
125 set_protocol(protocol.strip())
126 if get_protocol() in (HTTP_JSON_PROTOCOL, JSON_PROTOCOL):
127 cmd_factory_class = NetCommandFactoryJson
128 else:
129 cmd_factory_class = NetCommandFactory
130
131 if not isinstance(py_db.cmd_factory, cmd_factory_class):
132 py_db.cmd_factory = cmd_factory_class()
133
134 return py_db.cmd_factory.make_protocol_set_message(seq)
135
136 def set_ide_os_and_breakpoints_by(self, py_db, seq, ide_os, breakpoints_by):
137 """
138 :param ide_os: 'WINDOWS' or 'UNIX'
139 :param breakpoints_by: 'ID' or 'LINE'
140 """
141 if breakpoints_by == "ID":
142 py_db._set_breakpoints_with_id = True
143 else:
144 py_db._set_breakpoints_with_id = False
145
146 self.set_ide_os(ide_os)
147
148 return py_db.cmd_factory.make_version_message(seq)
149
150 def set_ide_os(self, ide_os):
151 """
152 :param ide_os: 'WINDOWS' or 'UNIX'
153 """
154 pydevd_file_utils.set_ide_os(ide_os)
155
156 def set_gui_event_loop(self, py_db, gui_event_loop):

Callers 12

__init__Method · 0.90
runMethod · 0.90
_locked_settraceFunction · 0.90
settrace_forkedFunction · 0.90
mainFunction · 0.90
__init__Method · 0.90
__init__Method · 0.90
test_get_ppidFunction · 0.90
callFunction · 0.90

Calls

no outgoing calls

Tested by 2

test_get_ppidFunction · 0.72