(
host,
stdout_to_server,
stderr_to_server,
port,
suspend,
trace_only_current_thread,
patch_multiprocessing,
stop_at_frame,
block_until_connected,
wait_for_ready_to_run,
dont_trace_start_patterns,
dont_trace_end_patterns,
access_token,
client_access_token,
__setup_holder__,
notify_stdin,
ppid,
)
| 3054 | |
| 3055 | |
| 3056 | def _locked_settrace( |
| 3057 | host, |
| 3058 | stdout_to_server, |
| 3059 | stderr_to_server, |
| 3060 | port, |
| 3061 | suspend, |
| 3062 | trace_only_current_thread, |
| 3063 | patch_multiprocessing, |
| 3064 | stop_at_frame, |
| 3065 | block_until_connected, |
| 3066 | wait_for_ready_to_run, |
| 3067 | dont_trace_start_patterns, |
| 3068 | dont_trace_end_patterns, |
| 3069 | access_token, |
| 3070 | client_access_token, |
| 3071 | __setup_holder__, |
| 3072 | notify_stdin, |
| 3073 | ppid, |
| 3074 | ): |
| 3075 | if patch_multiprocessing: |
| 3076 | try: |
| 3077 | from _pydev_bundle import pydev_monkey |
| 3078 | except: |
| 3079 | pass |
| 3080 | else: |
| 3081 | pydev_monkey.patch_new_process_functions() |
| 3082 | |
| 3083 | if host is None: |
| 3084 | from _pydev_bundle import pydev_localhost |
| 3085 | |
| 3086 | host = pydev_localhost.get_localhost() |
| 3087 | |
| 3088 | global _global_redirect_stdout_to_server |
| 3089 | global _global_redirect_stderr_to_server |
| 3090 | |
| 3091 | py_db = get_global_debugger() |
| 3092 | if __setup_holder__: |
| 3093 | SetupHolder.setup = __setup_holder__ |
| 3094 | if py_db is None: |
| 3095 | py_db = PyDB() |
| 3096 | pydevd_vm_type.setup_type() |
| 3097 | |
| 3098 | if SetupHolder.setup is None: |
| 3099 | setup = { |
| 3100 | "client": host, # dispatch expects client to be set to the host address when server is False |
| 3101 | "server": False, |
| 3102 | "port": int(port), |
| 3103 | "multiprocess": patch_multiprocessing, |
| 3104 | "skip-notify-stdin": not notify_stdin, |
| 3105 | pydevd_constants.ARGUMENT_PPID: ppid, |
| 3106 | } |
| 3107 | SetupHolder.setup = setup |
| 3108 | |
| 3109 | if access_token is not None: |
| 3110 | py_db.authentication.access_token = access_token |
| 3111 | SetupHolder.setup["access-token"] = access_token |
| 3112 | if client_access_token is not None: |
| 3113 | py_db.authentication.client_access_token = client_access_token |
no test coverage detected