
    ^h
                         S r SSKr\R                  R                  \5      r\R                  R                  \R                  R                  \R                  R                  \5      5      5      rS rg)z?Script injected into the debuggee process during attach-to-PID.    Nc                   ^ S n SS K mSTR                  ;  a   U4S jnU4S jnU4S jn[        R                  R	                  [
        SSSS	5      n[        R                  R                  U5      (       d   eTR                  R                  SU5        SS KnUR                  X#US
9  TR                  R                  U5        TR                  R                  S[
        5         SS KnSS KnSSKJn	Jn  SS Kn
TR                  S   [
        :X  d   eTR                  S	 U
R'                  5       nUb  UR)                  SS9  U S   b  UR+                  U S   5        UR-                  SU	R/                  U 5      5        U S   S:X  a  UR1                  U S   5        O4U S   S:X  a  UR3                  U S   U S   S9  O[5        [/        U 5      5      eUR-                  S5        g !   SS KnUR                  5         e = f! TR                  S   [
        :X  d   eTR                  S	 f = f!   SS KnUR                  5         Uc  e UR7                  5          N= f)Nr   	threadingc                 .   > [        U TR                  S9  g N)fileprintstderrmsgsyss    \/home/james-whalen/.local/lib/python3.13/site-packages/debugpy/server/attach_pid_injected.pyon_warnattach.<locals>.on_warn       #CJJ/    c                 .   > [        U TR                  S9  g r   r   r   s    r   on_exceptionattach.<locals>.on_exception   r   r   c                 .   > [        U TR                  S9  g r   r   r   s    r   on_criticalattach.<locals>.on_critical   r   r   debugpy	_vendoredpydevdpydevd_attach_to_process)r   r   r   )jsonlogF)waitlog_toz!Configuring injected debugpy: {0}modelistenaddressconnectadapter_access_token)access_tokenzdebugpy injected successfully)r   modulesospathjoin_debugpy_direxistsinsertattach_scriptfix_main_thread_idremove	traceback	print_excr   debugpy.serverdebugpy.commonr   r   r   get_global_debugger#dispose_and_kill_all_pydevd_threadsr    inforeprr"   r$   AssertionErrorreraise_exception)setupr   r   r   r   pydevd_attach_to_process_pathr.   r1   r   r   r   py_dbr   s               @r   attachr>      s"   
CJ$ckk)"000 13 .1- ww~~&CDDDD#@A %00#K 1 
  => 	<(	!088A;,...**,5555A?&NN5?+4dii6FG=H$NN5+,6]i'OOi u5K/L   !e-- HH,-U ##% 88A;,...&$;!!#sH   H% B*G   H% %G: 9B H% H% :H%  G77H% :(H""H% %*I)__doc__r(   r)   abspath__file__dirnamer+   r>    r   r   <module>rD      sT   
 F 	 77??8$wwrwwrwwx/HIJN.r   