Format: application/x-python-code
⬇ Download File (2.0 KB)
   1  o
   2  
   3  ��h
   4  �@s@dZddlZej�e�Zej�ej�ej�e���Zdd�ZdS)z?Script injected into the debuggee process during attach-to-PID.�Ncs�d}z�ddl�d�jvrXz?�fdd�}�fdd�}�fdd�}tj�td	d
   5  dd�}tj�|�s1J��j�d|�ddl}|j	|||d
   6  ��j�
   7  |�Wnddl}|����j�dt�z#ddl
   8  }ddl}ddlm}	m}ddl}
   9  W�jdtks~J��jd=n�jdtks�J��jd=w|
  10  ��}|dur�|jdd�|ddur�|�|d�|�d|	�|��|ddkr�|�|d�n|ddkr�|j|d|dd�ntt|���Wnddl}|��|dur�|��Y|�d�dS)Nr�	threadingc�t|�jd�dS�N)�file��print�stderr��msg��sys��Xc:\Users\shubh\Videos\agent\nova\Lib\site-packages\debugpy/server/attach_pid_injected.py�on_warn�zattach.<locals>.on_warncrrrr	rr
  11  r�on_exceptionrzattach.<locals>.on_exceptioncrrrr	rr
  12  r�on_criticalrzattach.<locals>.on_critical�debugpyZ	_vendored�pydevdZpydevd_attach_to_process)rrr)�json�logF)�wait�log_toz!Configuring injected debugpy: {0}�mode�listen�address�connectZadapter_access_token)Zaccess_tokenzdebugpy injected successfully)r�modules�os�path�join�_debugpy_dir�exists�insert�
  13  attach_scriptZfix_main_thread_id�remove�	traceback�	print_excrZdebugpy.serverZdebugpy.commonrrrZget_global_debuggerZ#dispose_and_kill_all_pydevd_threadsr�info�reprrr�AssertionErrorZreraise_exception)�setuprrrrZpydevd_attach_to_process_pathr$r&rrrZpy_dbr
  14  rr�attachsr
  15  ��
  16  
  17  �
  18  ��
  19  r,)�__doc__rr�abspath�__file__�dirnamer!r,r
  20  r
  21  r
  22  r�<module>s
  23