Format: application/x-python-code
⬇ Download File (6.8 KB)
   1  o
   2  
   3  ߛh��@s�UddlmZddlZddlZddlmZejeefZ	d.dd�Z
   4  e
   5  �d/dd��Ze
   6  �d0d1dd��Ze
   7  �dd�d2dd��Z
   8  e
   9  �dd�d3dd��Ze
  10  dd�d4d d!��Ze
  11  �d5d"d#��Ze
  12  �d4d$d%��Ze
  13  �d4d&d'��Ze
  14  �d6d)d*��Ze��d+Zd,ed-<dS)7�)�annotationsN)�_versionFcs�fdd�}|S)Ncs0t����fdd��}�r�fdd�}||_|S)Ncs&ddlm}t|�j�}||i|��S�Nr)�api)�debugpy.serverr�getattr�__name__��args�kwargsr�wrapped��f��Hc:\Users\shubh\Videos\agent\nova\Lib\site-packages\debugpy/public_api.py�wrappersz$_api.<locals>.apply.<locals>.wrappercs(ddlm}t|�j�}|j|i|��Sr)rrrr�cancelr	r
  15  rrr#sz#_api.<locals>.apply.<locals>.cancel)�	functools�wrapsr)rrr��
  16  cancelabler
  17  r�applysz_api.<locals>.applyr)rrrrr�_apisr�__path�str | typing.TextIO�return�NonecC�dS)z�Generate detailed debugpy logs in the specified directory.
  18  
  19      The directory must already exist. Several log files are generated,
  20      one for every process involved in the debug session.
  21      Nr)rrrr�log_to0�r�__properties�dict[str, typing.Any] | NonecKr)a�Sets debug configuration properties that cannot be set in the
  22      "attach" request, because they must be applied as early as possible
  23      in the process being debugged.
  24  
  25      For example, a "launch" configuration with subprocess debugging
  26      disabled can be defined entirely in JSON::
  27  
  28          {
  29              "request": "launch",
  30              "subProcess": false,
  31              ...
  32          }
  33  
  34      But the same cannot be done with "attach", because "subProcess"
  35      must be known at the point debugpy starts tracing execution. Thus,
  36      it is not available in JSON, and must be omitted::
  37  
  38          {
  39              "request": "attach",
  40              ...
  41          }
  42  
  43      and set from within the debugged process instead::
  44  
  45          debugpy.configure(subProcess=False)
  46          debugpy.listen(...)
  47  
  48      Properties to set can be passed either as a single dict argument,
  49      or as separate keyword arguments::
  50  
  51          debugpy.configure({"subProcess": False})
  52      Nr)r rrrr�	configure9rr")�in_process_debug_adapter�
  53  __endpoint�Endpoint | intr#�bool�EndpointcCr)a�Starts a debug adapter debugging this process, that listens for
  54      incoming socket connections from clients on the specified address.
  55  
  56      `__endpoint` must be either a (host, port) tuple as defined by the
  57      standard `socket` module for the `AF_INET` address family, or a port
  58      number. If only the port is specified, host is "127.0.0.1".
  59  
  60      `in_process_debug_adapter`: by default a separate python process is
  61      spawned and used to communicate with the client as the debug adapter.
  62      By setting the value of `in_process_debug_adapter` to True a new 
  63      python process is not spawned. Note: the con of setting 
  64      `in_process_debug_adapter` to True is that subprocesses won't be 
  65      automatically debugged.
  66          
  67      Returns the interface and the port on which the debug adapter is
  68      actually listening, in the same format as `__endpoint`. This may be
  69      different from address if port was 0 in the latter, in which case
  70      the adapter will pick some unused ephemeral port to listen on.
  71  
  72      This function does't wait for a client to connect to the debug
  73      adapter that it starts. Use `wait_for_client` to block execution
  74      until the client connects.
  75      Nr)r$r#rrr�listen]sr()�access_tokenr)�
  76  str | NonecCr)atTells an existing debug adapter instance that is listening on the
  77      specified address to debug this process.
  78  
  79      `__endpoint` must be either a (host, port) tuple as defined by the
  80      standard `socket` module for the `AF_INET` address family, or a port
  81      number. If only the port is specified, host is "127.0.0.1".
  82  
  83      `access_token` must be the same value that was passed to the adapter
  84      via the `--server-access-token` command-line switch.
  85  
  86      This function does't wait for a client to connect to the debug
  87      adapter that it connects to. Use `wait_for_client` to block
  88      execution until the client connects.
  89      Nr)r$r)rrr�connectzsr+TrcCr)a&If there is a client connected to the debug adapter that is
  90      debugging this process, returns immediately. Otherwise, blocks
  91      until a client connects to the adapter.
  92  
  93      While this function is waiting, it can be canceled by calling
  94      `wait_for_client.cancel()` from another thread.
  95      Nrrrrr�wait_for_client�rr,cCr)z[True if a client is connected to the debug adapter that is
  96      debugging this process.
  97      Nrrrrr�is_client_connected�sr-cCr)a
  98  If a client is connected to the debug adapter that is debugging
  99      this process, pauses execution of all threads, and simulates a
 100      breakpoint being hit at the line following the call.
 101  
 102      It is also registered as the default handler for builtins.breakpoint().
 103      Nrrrrr�
 104  breakpoint�rr.cCr)z�Makes the debugger aware of the current thread.
 105  
 106      Must be called on any background thread that is started by means
 107      other than the usual Python APIs (i.e. the "threading" module),
 108      in order for breakpoints to work on that thread.
 109      Nrrrrr�debug_this_thread�rr/�__should_tracecCr)aTells the debug adapter to enable or disable tracing on the
 110      current thread.
 111  
 112      When the thread is traced, the debug adapter can detect breakpoints
 113      being hit, but execution is slower, especially in functions that
 114      have any breakpoints set in them. Disabling tracing when breakpoints
 115      are not anticipated to be hit can improve performance. It can also
 116      be used to skip breakpoints on a particular thread.
 117  
 118      Tracing is automatically disabled for all threads when there is no
 119      client connected to the debug adapter.
 120      Nr)r0rrr�trace_this_thread�rr1�version�str�__version__)F)rrrr)N)r r!rr)r$r%r#r&rr')r$r%r)r*rr')rr)rr&)r0r&)�
 121  __future__rr�typingZdebugpyr�Tupler3�intr'rrr"r(r+r,r-r.r/r1�get_versionsr4�__annotations__rrrr�<module>s4
 122  #�
 123