id
int64
0
190k
prompt
stringlengths
21
13.4M
docstring
stringlengths
1
12k
177,673
from _pydevd_bundle.pydevd_constants import DebugInfoHolder, SHOW_COMPILE_CYTHON_COMMAND_LINE, NULL, LOG_TIME, \ ForkSafeLock from contextlib import contextmanager import traceback import os import sys import time def error_once(msg, *args): try: if args: message = msg % args else: ...
null
177,674
import sys import os def find_in_pythonpath(module_name): # Check all the occurrences where we could match the given module/package in the PYTHONPATH. # # This is a simplistic approach, but probably covers most of the cases we're interested in # (i.e.: this may fail in more elaborate cases of import cu...
null
177,675
import traceback from io import StringIO from java.lang import StringBuffer from java.lang import String import java.lang import sys from _pydev_bundle._pydev_tipper_common import do_find from org.python.core import PyReflectedFunction from org.python import core from org.python.core import PyClass import java.ut...
null
177,676
import traceback from io import StringIO from java.lang import StringBuffer from java.lang import String import java.lang import sys from _pydev_bundle._pydev_tipper_common import do_find from org.python.core import PyReflectedFunction from org.python import core from org.python.core import PyClass import java.ut...
@return file, line, col
177,677
import sys import os from _pydev_bundle._pydev_execfile import execfile class UserModuleDeleter: """ User Module Deleter (UMD) aims at deleting user modules to force Python to deeply reload them during import pathlist [list]: ignore list in terms of module path namelist [list]: ignore list in terms ...
Run filename args: command line arguments (string) wdir: working directory
177,678
import os import re import sys from _pydev_bundle._pydev_saved_modules import threading from _pydevd_bundle.pydevd_constants import get_global_debugger, IS_WINDOWS, IS_JYTHON, get_current_thread_id, \ sorted_dict_repr, set_global_debugger, DebugInfoHolder from _pydev_bundle import pydev_log from contextlib import c...
null
177,679
import os import re import sys from _pydev_bundle._pydev_saved_modules import threading from _pydevd_bundle.pydevd_constants import get_global_debugger, IS_WINDOWS, IS_JYTHON, get_current_thread_id, \ sorted_dict_repr, set_global_debugger, DebugInfoHolder from _pydev_bundle import pydev_log from contextlib import c...
null
177,680
import os import re import sys from _pydev_bundle._pydev_saved_modules import threading from _pydevd_bundle.pydevd_constants import get_global_debugger, IS_WINDOWS, IS_JYTHON, get_current_thread_id, \ sorted_dict_repr, set_global_debugger, DebugInfoHolder from _pydev_bundle import pydev_log from contextlib import c...
null
177,681
import os import re import sys from _pydev_bundle._pydev_saved_modules import threading from _pydevd_bundle.pydevd_constants import get_global_debugger, IS_WINDOWS, IS_JYTHON, get_current_thread_id, \ sorted_dict_repr, set_global_debugger, DebugInfoHolder from _pydev_bundle import pydev_log from contextlib import c...
null
177,682
import os import re import sys from _pydev_bundle._pydev_saved_modules import threading from _pydevd_bundle.pydevd_constants import get_global_debugger, IS_WINDOWS, IS_JYTHON, get_current_thread_id, \ sorted_dict_repr, set_global_debugger, DebugInfoHolder from _pydev_bundle import pydev_log from contextlib import c...
null
177,683
import os import re import sys from _pydev_bundle._pydev_saved_modules import threading from _pydevd_bundle.pydevd_constants import get_global_debugger, IS_WINDOWS, IS_JYTHON, get_current_thread_id, \ sorted_dict_repr, set_global_debugger, DebugInfoHolder from _pydev_bundle import pydev_log from contextlib import c...
Can be used to temporarily stop tracing threads created with thread.start_new_thread.
177,684
import os import re import sys from _pydev_bundle._pydev_saved_modules import threading from _pydevd_bundle.pydevd_constants import get_global_debugger, IS_WINDOWS, IS_JYTHON, get_current_thread_id, \ sorted_dict_repr, set_global_debugger, DebugInfoHolder from _pydev_bundle import pydev_log from contextlib import c...
Can be used to start tracing threads created with thread.start_new_thread again.
177,685
from __future__ import print_function import os import sys import codeop import traceback from IPython.core.error import UsageError from IPython.core.completer import IPCompleter from IPython.core.interactiveshell import InteractiveShell, InteractiveShellABC from IPython.core.usage import default_banner_parts from IPyt...
Run a string through pager
177,686
from __future__ import print_function import os import sys import codeop import traceback from IPython.core.error import UsageError from IPython.core.completer import IPCompleter from IPython.core.interactiveshell import InteractiveShell, InteractiveShellABC from IPython.core.usage import default_banner_parts from IPyt...
null
177,687
from _pydev_bundle._pydev_saved_modules import socket import sys def get_socket_names(n_sockets, close=False): socket_names = [] sockets = [] for _ in range(n_sockets): if IS_JYTHON: # Although the option which would be pure java *should* work for Jython, the socket being returned is sti...
null
177,688
import inspect import os.path import sys from _pydev_bundle._pydev_tipper_common import do_find from _pydevd_bundle.pydevd_utils import hasattr_checked, dir_checked from inspect import getfullargspec def Find(name, log=None): f = None mod = _imp(name, log) parent = mod foundAs = '' if inspect.ismodu...
@return file, line, col
177,689
import inspect import os.path import sys from _pydev_bundle._pydev_tipper_common import do_find from _pydevd_bundle.pydevd_utils import hasattr_checked, dir_checked from inspect import getfullargspec def Find(name, log=None): f = None mod = _imp(name, log) parent = mod foundAs = '' if inspect.ismodu...
null
177,690
import linecache import os.path import re from _pydev_bundle import pydev_log from _pydevd_bundle import pydevd_dont_trace from _pydevd_bundle.pydevd_constants import (RETURN_VALUES_DICT, NO_FTRACE, EXCEPTION_TYPE_HANDLED, EXCEPTION_TYPE_USER_UNHANDLED, PYDEVD_IPYTHON_CONTEXT) from _pydevd_bundle.pydevd_frame_utils...
null
177,691
import linecache import os.path import re from _pydev_bundle import pydev_log from _pydevd_bundle import pydevd_dont_trace from _pydevd_bundle.pydevd_constants import (RETURN_VALUES_DICT, NO_FTRACE, EXCEPTION_TYPE_HANDLED, EXCEPTION_TYPE_USER_UNHANDLED, PYDEVD_IPYTHON_CONTEXT) from _pydevd_bundle.pydevd_frame_utils...
null
177,692
from _pydev_bundle import pydev_log from _pydevd_bundle.pydevd_utils import hasattr_checked, DAPGrouper, Timer from io import StringIO import traceback from os.path import basename from functools import partial from _pydevd_bundle.pydevd_constants import IS_PY36_OR_GREATER, \ MethodWrapperType, RETURN_VALUES_DICT, ...
If obj is an object where evaluating its representation leads to the same object, return True, otherwise, return False.
177,693
from _pydev_bundle import pydev_log from _pydevd_bundle.pydevd_utils import hasattr_checked, DAPGrouper, Timer from io import StringIO import traceback from os.path import basename from functools import partial from _pydevd_bundle.pydevd_constants import IS_PY36_OR_GREATER, \ MethodWrapperType, RETURN_VALUES_DICT, ...
null
177,694
import time from _pydev_bundle._pydev_filesystem_encoding import getfilesystemencoding from _pydev_bundle._pydev_saved_modules import threading from _pydevd_bundle import pydevd_xml from _pydevd_bundle.pydevd_constants import GlobalDebuggerHolder from _pydevd_bundle.pydevd_constants import get_thread_id from _pydevd_bu...
null
177,695
from _pydev_bundle._pydev_saved_modules import threading def wrapper(fun): def pydev_after_run_call(): pass def inner(*args, **kwargs): fun(*args, **kwargs) pydev_after_run_call() return inner def wrap_attr(obj, attr): t_save_start = getattr(obj, attr) setattr(obj, attr, wra...
null
177,696
from _pydev_bundle._pydev_saved_modules import threading def factory_wrapper(fun): def inner(*args, **kwargs): obj = fun(*args, **kwargs) return ObjectWrapper(obj) return inner def wrap_threads(): # TODO: add wrappers for thread and _thread # import _thread as mod # print("Thread im...
null
177,697
from _pydev_bundle.pydev_imports import execfile from _pydevd_bundle import pydevd_dont_trace import types from _pydev_bundle import pydev_log from _pydevd_bundle.pydevd_constants import get_global_debugger def write_err(*args): py_db = get_global_debugger() if py_db is not None: new_lst = [] fo...
null
177,698
from _pydev_bundle.pydev_imports import execfile from _pydevd_bundle import pydevd_dont_trace import types from _pydev_bundle import pydev_log from _pydevd_bundle.pydevd_constants import get_global_debugger LEVEL1 = 1 DEBUG = NO_DEBUG def write_err(*args): py_db = get_global_debugger() if py_db is not None: ...
null
177,699
from _pydev_bundle.pydev_imports import execfile from _pydevd_bundle import pydevd_dont_trace import types from _pydev_bundle import pydev_log from _pydevd_bundle.pydevd_constants import get_global_debugger LEVEL2 = 2 DEBUG = NO_DEBUG def write_err(*args): py_db = get_global_debugger() if py_db is not None: ...
null
177,700
from _pydev_bundle.pydev_imports import execfile from _pydevd_bundle import pydevd_dont_trace import types from _pydev_bundle import pydev_log from _pydevd_bundle.pydevd_constants import get_global_debugger def write_err(*args): py_db = get_global_debugger() if py_db is not None: new_lst = [] fo...
null
177,701
from _pydev_bundle.pydev_imports import execfile from _pydevd_bundle import pydevd_dont_trace import types from _pydev_bundle import pydev_log from _pydevd_bundle.pydevd_constants import get_global_debugger def code_objects_equal(code0, code1): for d in dir(code0): if d.startswith('_') or 'line' in d or d ...
null
177,702
from contextlib import contextmanager import sys from _pydevd_bundle.pydevd_constants import get_frame, RETURN_VALUES_DICT, \ ForkSafeLock, GENERATED_LEN_ATTR_NAME, silence_warnings_decorator from _pydevd_bundle.pydevd_xml import get_variable_details, get_type from _pydev_bundle.pydev_override import overrides from...
null
177,703
from _pydev_bundle import pydev_log from _pydevd_bundle import pydevd_import_class from _pydevd_bundle.pydevd_frame_utils import add_exception_to_frame from _pydev_bundle._pydev_saved_modules import threading def get_exception_breakpoint(exctype, exceptions): def add_exception_to_frame(frame, exception_info): def sto...
null
177,704
from _pydev_bundle import pydev_log from _pydevd_bundle import pydevd_import_class from _pydevd_bundle.pydevd_frame_utils import add_exception_to_frame from _pydev_bundle._pydev_saved_modules import threading def get_exception_class(kls): try: return eval(kls) except: return pydevd_import_class...
null
177,705
def add_line_breakpoint(plugin, pydb, type, canonical_normalized_filename, breakpoint_id, line, condition, expression, func_name, hit_condition=None, is_logpoint=False, add_breakpoint_result=None, on_changed_breakpoint_state=None): return None
null
177,706
def after_breakpoints_consolidated(py_db, canonical_normalized_filename, id_to_pybreakpoint, file_to_line_to_breakpoints): return None
null
177,707
def add_exception_breakpoint(plugin, pydb, type, exception): return False
null
177,708
def remove_exception_breakpoint(plugin, pydb, type, exception): return False
null
177,709
def remove_all_exception_breakpoints(plugin, pydb): return False
null
177,710
def get_breakpoints(plugin, pydb): return None
null
177,711
def can_skip(plugin, pydb, frame): return True
null
177,712
def has_exception_breaks(plugin): return False
null
177,713
def has_line_breaks(plugin): return False
null
177,714
def cmd_step_into(plugin, pydb, frame, event, args, stop_info, stop): return False
null
177,715
def cmd_step_over(plugin, pydb, frame, event, args, stop_info, stop): return False
null
177,716
def stop(plugin, pydb, frame, event, args, stop_info, arg, step_cmd): return False
null
177,717
def get_breakpoint(plugin, pydb, pydb_frame, frame, event, args): return None
null
177,718
def suspend(plugin, pydb, thread, frame): return None
null
177,719
def exception_break(plugin, pydb, pydb_frame, frame, args, arg): return None
null
177,720
def change_variable(plugin, frame, attr, expression): return False
null
177,721
import sys from _pydevd_bundle import pydevd_xml from os.path import basename from _pydev_bundle import pydev_log from urllib.parse import unquote_plus from _pydevd_bundle.pydevd_constants import IS_PY311_OR_GREATER def print_var_node(xml_node, stream): def get_referrer_info(searched_obj): def print_referrers(obj, str...
null
177,722
import sys import traceback from _pydevd_bundle.pydevconsole_code import InteractiveConsole, _EvalAwaitInNewEventLoop from _pydev_bundle import _pydev_completer from _pydev_bundle.pydev_console_utils import BaseInterpreterInterface, BaseStdIn from _pydev_bundle.pydev_imports import Exec from _pydev_bundle.pydev_overrid...
null
177,723
import sys import traceback from _pydevd_bundle.pydevconsole_code import InteractiveConsole, _EvalAwaitInNewEventLoop from _pydev_bundle import _pydev_completer from _pydev_bundle.pydev_console_utils import BaseInterpreterInterface, BaseStdIn from _pydev_bundle.pydev_imports import Exec from _pydev_bundle.pydev_overrid...
fetch an interactive console instance from the cache and push the received command to the console. create and return an instance of console_message
177,724
import sys import traceback from _pydevd_bundle.pydevconsole_code import InteractiveConsole, _EvalAwaitInNewEventLoop from _pydev_bundle import _pydev_completer from _pydev_bundle.pydev_console_utils import BaseInterpreterInterface, BaseStdIn from _pydev_bundle.pydev_imports import Exec from _pydev_bundle.pydev_overrid...
fetch all completions, create xml for the same return the completions xml
177,725
import dis from _pydevd_bundle.pydevd_collect_bytecode_info import iter_instructions from _pydev_bundle import pydev_log import sys import inspect from io import StringIO _op_name_to_handler = {} def _register(cls): _op_name_to_handler[cls.opname] = cls return cls
null
177,726
import dis from _pydevd_bundle.pydevd_collect_bytecode_info import iter_instructions from _pydev_bundle import pydev_log import sys import inspect from io import StringIO def _print_after_info(line_contents, stream=None): if stream is None: stream = sys.stdout for token in line_contents: after_t...
null
177,727
import dis from _pydevd_bundle.pydevd_collect_bytecode_info import iter_instructions from _pydev_bundle import pydev_log import sys import inspect from io import StringIO DEBUG = False class _PyCodeToSource(object): def __init__(self, co, memo=None): if memo is None: memo = {} self.memo ...
Converts a code object to source code to provide a suitable representation for the compiler when the actual source code is not found. This is a work in progress / proof of concept / not ready to be used.
177,728
from _pydevd_bundle._debug_adapter.pydevd_schema_log import debug_exception import json import itertools from functools import partial _all_messages = {} def register(cls): _all_messages[cls.__name__] = cls return cls
null
177,729
from _pydevd_bundle._debug_adapter.pydevd_schema_log import debug_exception import json import itertools from functools import partial _requests_to_types = {} def register_request(command): def do_register(cls): _requests_to_types[command] = cls return cls return do_register
null
177,730
from _pydevd_bundle._debug_adapter.pydevd_schema_log import debug_exception import json import itertools from functools import partial _responses_to_types = {} def register_response(command): def do_register(cls): _responses_to_types[command] = cls return cls return do_register
null
177,731
from _pydevd_bundle._debug_adapter.pydevd_schema_log import debug_exception import json import itertools from functools import partial _event_to_types = {} def register_event(event): def do_register(cls): _event_to_types[event] = cls return cls return do_register
null
177,732
from _pydevd_bundle._debug_adapter.pydevd_schema_log import debug_exception import json import itertools from functools import partial _all_messages = {} def from_dict(dct, update_ids_from_dap=False): def from_json(json_msg, update_ids_from_dap=False, on_dict_loaded=lambda dct:None): if isinstance(json_msg, bytes)...
null
177,733
from _pydevd_bundle._debug_adapter.pydevd_schema_log import debug_exception import json import itertools from functools import partial _responses_to_types = {} def get_response_class(request): if request.__class__ == dict: return _responses_to_types[request['command']] return _responses_to_types[reques...
null
177,734
def load_schema_data(): import os.path import json json_file = os.path.join(os.path.dirname(__file__), 'debugProtocol.json') if not os.path.exists(json_file): import requests req = requests.get('https://raw.githubusercontent.com/microsoft/debug-adapter-protocol/gh-pages/debugAdapterProto...
null
177,735
from __future__ import nested_scopes import traceback import warnings from _pydev_bundle import pydev_log from _pydev_bundle._pydev_saved_modules import thread, threading from _pydev_bundle import _pydev_saved_modules import signal import os import ctypes from importlib import import_module from urllib.parse import quo...
null
177,736
from __future__ import nested_scopes import traceback import warnings from _pydev_bundle import pydev_log from _pydev_bundle._pydev_saved_modules import thread, threading from _pydev_bundle import _pydev_saved_modules import signal import os import ctypes from importlib import import_module from urllib.parse import quo...
null
177,737
from __future__ import nested_scopes import traceback import warnings from _pydev_bundle import pydev_log from _pydev_bundle._pydev_saved_modules import thread, threading from _pydev_bundle import _pydev_saved_modules import signal import os import ctypes from importlib import import_module from urllib.parse import quo...
null
177,738
from __future__ import nested_scopes import traceback import warnings from _pydev_bundle import pydev_log from _pydev_bundle._pydev_saved_modules import thread, threading from _pydev_bundle import _pydev_saved_modules import signal import os import ctypes from importlib import import_module from urllib.parse import quo...
null
177,739
from __future__ import nested_scopes import traceback import warnings from _pydev_bundle import pydev_log from _pydev_bundle._pydev_saved_modules import thread, threading from _pydev_bundle import _pydev_saved_modules import signal import os import ctypes from importlib import import_module from urllib.parse import quo...
null
177,740
from __future__ import nested_scopes import traceback import warnings from _pydev_bundle import pydev_log from _pydev_bundle._pydev_saved_modules import thread, threading from _pydev_bundle import _pydev_saved_modules import signal import os import ctypes from importlib import import_module from urllib.parse import quo...
When debugging with gevent check that the gevent flag is used if the user uses the gevent monkey-patching. :return bool: Returns True if a message had to be shown to the user and False otherwise.
177,741
from __future__ import nested_scopes import traceback import warnings from _pydev_bundle import pydev_log from _pydev_bundle._pydev_saved_modules import thread, threading from _pydev_bundle import _pydev_saved_modules import signal import os import ctypes from importlib import import_module from urllib.parse import quo...
null
177,742
import linecache import os from _pydev_bundle.pydev_imports import _queue from _pydev_bundle._pydev_saved_modules import time from _pydev_bundle._pydev_saved_modules import threading from _pydev_bundle._pydev_saved_modules import socket as socket_module from _pydevd_bundle.pydevd_constants import (DebugInfoHolder, IS_W...
binds to a port, waits for the debugger to connect
177,743
import linecache import os from _pydev_bundle.pydev_imports import _queue from _pydev_bundle._pydev_saved_modules import time from _pydev_bundle._pydev_saved_modules import threading from _pydev_bundle._pydev_saved_modules import socket as socket_module from _pydevd_bundle.pydevd_constants import (DebugInfoHolder, IS_W...
connects to a host/port
177,744
import linecache import os from _pydev_bundle.pydev_imports import _queue from _pydev_bundle._pydev_saved_modules import time from _pydev_bundle._pydev_saved_modules import threading from _pydev_bundle._pydev_saved_modules import socket as socket_module from _pydevd_bundle.pydevd_constants import (DebugInfoHolder, IS_W...
null
177,745
import linecache import os from _pydev_bundle.pydev_imports import _queue from _pydev_bundle._pydev_saved_modules import time from _pydev_bundle._pydev_saved_modules import threading from _pydev_bundle._pydev_saved_modules import socket as socket_module from _pydevd_bundle.pydevd_constants import (DebugInfoHolder, IS_W...
null
177,746
import linecache import os from _pydev_bundle.pydev_imports import _queue from _pydev_bundle._pydev_saved_modules import time from _pydev_bundle._pydev_saved_modules import threading from _pydev_bundle._pydev_saved_modules import socket as socket_module from _pydevd_bundle.pydevd_constants import (DebugInfoHolder, IS_W...
null
177,747
import linecache import os from _pydev_bundle.pydev_imports import _queue from _pydev_bundle._pydev_saved_modules import time from _pydev_bundle._pydev_saved_modules import threading from _pydev_bundle._pydev_saved_modules import socket as socket_module from _pydevd_bundle.pydevd_constants import (DebugInfoHolder, IS_W...
:param VariablesRequest request:
177,748
import linecache import os from _pydev_bundle.pydev_imports import _queue from _pydev_bundle._pydev_saved_modules import time from _pydev_bundle._pydev_saved_modules import threading from _pydev_bundle._pydev_saved_modules import socket as socket_module from _pydevd_bundle.pydevd_constants import (DebugInfoHolder, IS_W...
Changes the value of a variable
177,749
import linecache import os from _pydev_bundle.pydev_imports import _queue from _pydev_bundle._pydev_saved_modules import time from _pydev_bundle._pydev_saved_modules import threading from _pydev_bundle._pydev_saved_modules import socket as socket_module from _pydevd_bundle.pydevd_constants import (DebugInfoHolder, IS_W...
The pydevd_vars.change_attr_expression(thread_id, frame_id, attr, value, dbg) can only deal with changing at a frame level, so, currently changing the contents of something in a different scope is currently not supported. :param SetVariableRequest request:
177,750
import linecache import os from _pydev_bundle.pydev_imports import _queue from _pydev_bundle._pydev_saved_modules import time from _pydev_bundle._pydev_saved_modules import threading from _pydev_bundle._pydev_saved_modules import socket as socket_module from _pydevd_bundle.pydevd_constants import (DebugInfoHolder, IS_W...
Converts request into python variable
177,751
import linecache import os from _pydev_bundle.pydev_imports import _queue from _pydev_bundle._pydev_saved_modules import time from _pydev_bundle._pydev_saved_modules import threading from _pydev_bundle._pydev_saved_modules import socket as socket_module from _pydevd_bundle.pydevd_constants import (DebugInfoHolder, IS_W...
null
177,752
import linecache import os from _pydev_bundle.pydev_imports import _queue from _pydev_bundle._pydev_saved_modules import time from _pydev_bundle._pydev_saved_modules import threading from _pydev_bundle._pydev_saved_modules import socket as socket_module from _pydevd_bundle.pydevd_constants import (DebugInfoHolder, IS_W...
null
177,753
import linecache import os from _pydev_bundle.pydev_imports import _queue from _pydev_bundle._pydev_saved_modules import time from _pydev_bundle._pydev_saved_modules import threading from _pydev_bundle._pydev_saved_modules import socket as socket_module from _pydevd_bundle.pydevd_constants import (DebugInfoHolder, IS_W...
gets the valid line numbers for use with set next statement
177,754
import linecache import os from _pydev_bundle.pydev_imports import _queue from _pydev_bundle._pydev_saved_modules import time from _pydev_bundle._pydev_saved_modules import threading from _pydev_bundle._pydev_saved_modules import socket as socket_module from _pydevd_bundle.pydevd_constants import (DebugInfoHolder, IS_W...
:param EvaluateRequest request:
177,755
import linecache import os from _pydev_bundle.pydev_imports import _queue from _pydev_bundle._pydev_saved_modules import time from _pydev_bundle._pydev_saved_modules import threading from _pydev_bundle._pydev_saved_modules import socket as socket_module from _pydevd_bundle.pydevd_constants import (DebugInfoHolder, IS_W...
gets the value of a variable
177,756
import linecache import os from _pydev_bundle.pydev_imports import _queue from _pydev_bundle._pydev_saved_modules import time from _pydev_bundle._pydev_saved_modules import threading from _pydev_bundle._pydev_saved_modules import socket as socket_module from _pydevd_bundle.pydevd_constants import (DebugInfoHolder, IS_W...
null
177,757
import linecache import os from _pydev_bundle.pydev_imports import _queue from _pydev_bundle._pydev_saved_modules import time from _pydev_bundle._pydev_saved_modules import threading from _pydev_bundle._pydev_saved_modules import socket as socket_module from _pydevd_bundle.pydevd_constants import (DebugInfoHolder, IS_W...
Note that if the column is >= 0, the act_tok is considered text and the actual activation token/qualifier is computed in this command.
177,758
import linecache import os from _pydev_bundle.pydev_imports import _queue from _pydev_bundle._pydev_saved_modules import time from _pydev_bundle._pydev_saved_modules import threading from _pydev_bundle._pydev_saved_modules import socket as socket_module from _pydevd_bundle.pydevd_constants import (DebugInfoHolder, IS_W...
Fetch the variable description stub from the debug console
177,759
import linecache import os from _pydev_bundle.pydev_imports import _queue from _pydev_bundle._pydev_saved_modules import time from _pydev_bundle._pydev_saved_modules import threading from _pydev_bundle._pydev_saved_modules import socket as socket_module from _pydevd_bundle.pydevd_constants import (DebugInfoHolder, IS_W...
Fetch exception details
177,760
from _pydev_bundle import pydev_log import os from _pydevd_bundle.pydevd_comm import CMD_SIGNATURE_CALL_TRACE, NetCommand from _pydevd_bundle import pydevd_xml from _pydevd_bundle.pydevd_utils import get_clsname_for_code The provided code snippet includes necessary dependencies for implementing the `_modname` function...
Return a plausible module name for the path
177,761
from _pydev_bundle import pydev_log import os from _pydevd_bundle.pydevd_comm import CMD_SIGNATURE_CALL_TRACE, NetCommand from _pydevd_bundle import pydevd_xml from _pydevd_bundle.pydevd_utils import get_clsname_for_code def get_signature_info(signature): return signature.file, signature.name, ' '.join([arg[1] for...
null
177,762
from _pydev_bundle import pydev_log import os from _pydevd_bundle.pydevd_comm import CMD_SIGNATURE_CALL_TRACE, NetCommand from _pydevd_bundle import pydevd_xml from _pydevd_bundle.pydevd_utils import get_clsname_for_code def get_frame_info(frame): co = frame.f_code return co.co_name, frame.f_lineno, co.co_file...
null
177,763
from _pydev_bundle import pydev_log import os from _pydevd_bundle.pydevd_comm import CMD_SIGNATURE_CALL_TRACE, NetCommand from _pydevd_bundle import pydevd_xml from _pydevd_bundle.pydevd_utils import get_clsname_for_code def create_signature_message(signature): cmdTextList = ["<xml>"] cmdTextList.append('<call_...
null
177,764
from _pydev_bundle import pydev_log import os from _pydevd_bundle.pydevd_comm import CMD_SIGNATURE_CALL_TRACE, NetCommand from _pydevd_bundle import pydevd_xml from _pydevd_bundle.pydevd_utils import get_clsname_for_code def get_type_of_value(value, ignore_module_name=('__main__', '__builtin__', 'builtins'), recursive=...
null
177,765
import abc from typing import Any The provided code snippet includes necessary dependencies for implementing the `_with_metaclass` function. Write a Python function `def _with_metaclass(meta, *bases)` to solve the following problem: Create a base class with a metaclass. Here is the function: def _with_metaclass(meta...
Create a base class with a metaclass.
177,766
import pkgutil import sys from _pydev_bundle import pydev_log EXTENSION_MANAGER_INSTANCE = ExtensionManager() The provided code snippet includes necessary dependencies for implementing the `extensions_of_type` function. Write a Python function `def extensions_of_type(extension_type)` to solve the following problem: :p...
:param T extension_type: The type of the extension hook :rtype: list[T]
177,767
from _pydevd_bundle.pydevd_constants import (STATE_RUN, PYTHON_SUSPEND, SUPPORT_GEVENT, ForkSafeLock, _current_frames) from _pydev_bundle import pydev_log from _pydevd_bundle.pydevd_frame import PyDBFrame class PyDBAdditionalThreadInfo(object): # ENDIF # Note: the params in cython are declared in pydevd_cython....
null
177,768
import os import sys def convert_ppid(ppid): ret = int(ppid) if ret != 0: if ret == os.getpid(): raise AssertionError( 'ppid passed is the same as the current process pid (%s)!' % (ret,)) return ret
null
177,769
import os import sys ACCEPTED_ARG_HANDLERS = [ ArgHandlerWithParam('port', int, 0), ArgHandlerWithParam('ppid', convert_ppid, 0), ArgHandlerWithParam('vm_type'), ArgHandlerWithParam('client'), ArgHandlerWithParam('access-token'), ArgHandlerWithParam('client-access-token'), ArgHandlerWithPara...
parses the arguments. removes our arguments from the command line
177,770
import os from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, \ ENV_FALSE_LOWER_VALUES from _pydev_bundle import pydev_log dirname = os.path.dirname(os.path.dirname(__file__)) def delete_old_compiled_extensions(): import _pydevd_bundle cython_extensions_dir = os.path.dirname...
null
177,771
from _pydevd_bundle.pydevd_constants import QUOTED_LINE_PROTOCOL from _pydev_bundle import pydev_log import sys class PydevdCustomization(object): def on_pydb_init(py_db): if PydevdCustomization.DEBUG_MODE == 'debugpy-dap': pydev_log.debug('Apply debug mode: debugpy-dap') py_db.skip_suspend_on_brea...
null
177,772
import sys class PydevdVmType: def set_vm_type(vm_type): PydevdVmType.vm_type = vm_type
null