403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Python315/Lib/idlelib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/idlelib/__pycache__/debugger.cpython-315.opt-1.pyc
R
>lqj_Tc��Qs]PHs]PHs]QH3]QHGsGs]QHGs]QH$G
s
]QH,GsQQ\O2sQsQ	sQ
Q2sQQ
\
2sQQ2s\Q6Xc]QHTGs\Q]P
Q5P!P!)a�Debug user code with a GUI interface to a subclass of bdb.Bdb.

The Idb instance 'idb' and Debugger instance 'gui' need references to each
other or to an rpc proxy for each other.

If IDLE is started with '-n', so that user code and idb both run in the
IDLE process, Debugger is called without an idb.  Debugger.__init__
calls Idb with its incomplete self.  Idb.__init__ stores gui and gui
then stores idb.

If IDLE is started normally, so that user code executes in a separate
process, debugger_r.start_remote_debugger is called, executing in the
IDLE process.  It calls 'start the debugger' in the remote process,
which calls Idb with a gui proxy.  Then Debugger is called in the IDLE
for more.
)�*)�Frame�	Scrollbar)�macosx)�ScrolledList)�ListedToplevelc�D``�\sQs]snQsU1QksQsQsQsUs	U9s
!)�Idbz6Supply user_line and user_exception functions for Bdb.c�2:�Vm[RU_	2P!�N)�gui�super�__init__)�selfr�	__class__s&&��%C:\Python315\\Lib\idlelib\debugger.pyr
�Idb.__init__ s�����
����c��[U2%cUO2P![U2oUOO	V!2P![
cP!h9h)z]Handle a user stopping or breaking at a line.

Convert frame to a string and send it to gui.
)�_in_rpc_code�set_step�_frame2messager�interaction�TclError)r�frame�messages&& r�	user_line�
Idb.user_line$sN��
�����M�M�O�� ��'��	��H�H� � ��0���	��	�s�A�	A�A�Ac��[U2%cUO2P![U2oUOO	V1U2P!)z)Handle an the occurrence of an exception.)rrrrr)rr�exc_infors&&& r�user_exception�Idb.user_exception2s7�������M�M�O�� ��'�������W�X�6r)r)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r
rr�__static_attributes__�__classdictcell__�
__classcell__)r�
__classdict__s@@rrrs����<���7�7rrc���UOOOQ2%cP	!UOoUeP
!UOOoQU7c
QU7cP
![	U2!)z)Determine if debugger is within RPC code.zrpc.py�idlelib�debugger)�f_code�co_filename�count�f_backr)r�
prev_frame�	prev_names&  rrr:sb���|�|���%�%�h�/�/���\�\�
�����%�%�1�1�	��	�!�j�I�&=���J�'�'rc���UOoUOoUOo[OOU2oUQU0oUOQ6wcUQUOQ0oU!)z"Return a message string for frame.�:�?�: z())r-r.�f_lineno�os�path�basename�co_name)r�code�filename�linenor:rs&     rrrIsj���<�<�D����H�
�^�^�F��w�w����)�H��
�!�F�8�$�G��|�|�s���I�R����~�R�0���Nrc��`�\sQs]UsnQsPsPsPsPsPs	Ps
PsQQksQs
QQksQsQQksQsQsQ	sQ
sQsQsQ
sQsQsQsQsQsQsQQksQsQs Qs!Qs"Qs#Us$P!)�Debuggerz�The debugger interface.

This class handles the drawing of the debugger window and
the interactions with the underlying debugger session.
c��Ue[U2oVmV mPUmUO	2P
Um]UmP!)z�Instantiate and draw a debugger window.

:param pyshell: An instance of the PyShell Window
:type  pyshell: :class:`idlelib.pyshell.PyShell`

:param idb: An instance of the IDLE debugger (optional)
:type  idb: :class:`idlelib.debugger.Idb`
)r�pyshell�idbr�make_gui�interacting�
nesting_level)rrBrCs&&&rr
�Debugger.__init__cs<���;��d�)�C�������
��
�
�� �����rc�``�RO]6�c4RO2ROO]dUU1Qk2P!P	RmRO
ORP
Rm!P
Rmh9h)zRun the debugger.c�(:�ROR!r
)�run)�argsrs��r�<lambda>�Debugger.run.<locals>.<lambda>�s
������4�r)rF�
abort_loop�root�afterrErCrJ)rrKsfjrrJ�Debugger.runusa���>����!��O�O���I�I�O�O�C�!8�9��	%�#�D���8�8�<�<��&�$�D���u�D��s�	!A2�2	A;c�v�UO2UO%cUOO	2P!UO
%c"UO
O
2PUmUOO2UOO2P![cK�h9h)zClose the debugger and window.)
�quit�	ExceptionrE�top�bell�stackviewer�closerB�close_debugger�destroy�r�events&&rrX�Debugger.close�s���	��I�I�K������H�H�M�M�O���������"�"�$��d�&6�	
���#�#�%���������	��	�s�B*�*	B8�4B8�7B8c��UOoUOUmUO9Umo[U29UmoUOOQ2UOO
Q2UOQUO2UOOQUO2[U29UmoUOOQQ5,9Um
o[UQUOQ59UmoUO#U2[UQ	UO$Q59UmoUO#U2[UQ
UO(Q59UmoUO#U2[UQUO,Q59UmoUO#U2[UQUO0Q59UmoUO#U2SFD'oUO3Q
Q5UOQQ5J)	[U29UmoUO4OQQ5UO6%f6[9U2UO:mUO6O=]2[?UQUO@UO6Q5Um!UOBOE]]Q5UOF%f[9U2UO:m#[?UQUOHUOFQ5Um%UOJOE]]Q5UOL%f6[9U2UO:m&UOLO=]2[?UQUONUOLQ5Um(UOPOE]]Q5UOR%f[9U2UO:m)[?UQUOTUORQ5Um+UOVOE]]Q5[YUQQ5Um-UOZOQQ5[YUQQ5Um.UO\OQQQ5UO\O_Q2Um0[U]Q5Um1UObO]QQ5[U2Um2UOdO]QQ5[U]Q5Um3UOfO]QQ5UO6Oi2%cUOA2UOLOi2%cUOO2UOROi2%cUOU2P!P!)z$Draw the debugger gui on the screen.z
Debug Control�Debug�WM_DELETE_WINDOWz<Escape>�w)�anchor�Go)�text�command�Step�Over�Out�Quit�disabled��state�left)�side�Stack)rdre�variable��row�column�Source�Locals�Globals�x)rb�fill�
background)�height�both��expandrx)5rB�flistrOrrU�wm_title�wm_iconname�wm_protocolrX�bindr�bframe�pack�buttons�Button�cont�bcont�append�step�bstep�next�bnext�ret�bretrS�	configure�cframe�vstack�
BooleanVarr�set�Checkbutton�
show_stack�bstack�grid�vsource�show_source�bsource�vlocals�show_locals�blocals�vglobals�show_globals�bglobals�Label�status�error�cget�errorbg�fstack�flocals�fglobals�get)rrBrOrUr��bl�br�s&       rrD�Debugger.make_gui�s9���,�,���]�]��
�"�<�<�'��	�D�'��-�-���3������/�*������W�%����*�D�J�J�7����
�
�j�$�*�*�-�$�S�z�)���f��������$�����r���T�4�9�9�E�E��
�Q�
�	�	�!����V�T�Y�Y�G�G��
�Q�
�	�	�!����V�T�Y�Y�G�G��
�Q�
�	�	�!���v�E�4�8�8�D�D��	�A�
�	�	�!���v�F�D�I�I�F�F��	�A�
�	�	�!���A�
�K�K�j�K�)�
�F�F��F��� %�V�}�,���f������f��%��{�{�{�$.�s�O�D�N�N�!��K�K�O�O�A��!�&��$�/�/�D�K�K�I��������Q�q��)��|�|�|�%/��_�D�N�N�"�"�6��4�#3�#3�d�l�l�L��������a���*��|�|�|�%/��_�D�N�N�"��L�L���Q��"�6��4�#3�#3�d�l�l�L��������a���*��}�}�}�&0��o�D�N�N�#�#�F��D�$5�$5��
�
�O��
��
�
���q���+��C��,����������$��3�s�+��
��
�
���s���-��z�z���|�4����C��*�����������/��S�z�����������0��c�!�,��
��
�
���!�&��1��;�;�?�?����O�O���<�<����������=�=���������rc�z�V mUOOUQ5U%c"UvqEoUOoUd	UQU0oQoLPoPoUOoUOOVxQ5UOo	U	%c:UOOUOU2vq�U	OV�2UO]2UOO2%cUO2UO FDoUOQQ5J	UO"O%2U9O&]*
tmUO(O*O-QQ2U9O&]*tmUO FDoUOQ	Q5J	UOOPQ5UOOPUOQ5PUmP![cQ[S2*oCK�h9hCK�9h)
�rdz%sr6�yellow)rdry�normalrk�vwait�::idledebugwaitrj)rr�r�r!�AttributeError�strr�r�rWrC�	get_stack�
load_stack�show_variablesr�r��sync_source_liner�rU�wakeuprFrO�tk�call)
rrr�info�type�value�tb�m1�bg�sv�stack�ir�s
&&&&         rr�Debugger.interaction�s����
������7��+��"�O�D��
&��]�]��� ���4�r�%��)�B��B��B��B����B��
�
���"��4�
�
�
��
��x�x�)�)�$�*�*�b�9�H�E��M�M�%�#����A���<�<������!�!�#����A�
�K�K�h�K�'��	
������	
���a����	�	�����'�#4�5����a������A�
�K�K�j�K�)�������2��&��
�
���"�����>���
��Q"�
&��C��I�%��
&����s#�H�H5�	H2�H2�1H2�5H:c��UOoU%fP!UOU2vq#UQ*UPP*Q6wcE[OO	U2%cUO
O
V#2P!P!P!)N:N�Nz<>)r�_Debugger__frame2fileliner8r9�existsr~�gotofileline)rrr=r>s&   rr��Debugger.sync_source_line.sh���
�
�����0�0��7����B�<�(�2�3�-�'�4�/�B�G�G�N�N�8�4L�4L��J�J�#�#�H�5�5M�/rc�R�UOoUOoUOoV41!r
)r-r.r7)rrr<r=r>s&&   r�__frame2fileline�Debugger.__frame2fileline6s(���|�|���#�#��������rc�\�UOO2UO2P!r
)rC�set_continuerN�rs&rr��
Debugger.cont<s�����������rc�\�UOO2UO2P!r
)rCrrNr�s&rr��
Debugger.step@������������rc�r�UOOUO2UO2P!r
)rC�set_nextrrNr�s&rr��
Debugger.nextDs"�������$�*�*�%����rc�r�UOOUO2UO2P!r
)rC�
set_returnrrNr�s&rr��Debugger.retHs"�������D�J�J�'����rc�\�UOO2UO2P!r
)rC�set_quitrNr�s&rrS�
Debugger.quitLr�rc�V�UOOOQQQ2P!)r�r��1)rOr�r�r�s&rrN�Debugger.abort_loopPs���	�	�����%�!2�C�8rc��UO%f�UOO2%cx[UOUO
U29UmoUO%c<UOOUOP2vq#UOV#2P!P!UOoU%c8UOO2%fPUmUO2]UOQ$P!)Nrz)rWr�r��StackViewerr�r~rrCr�r�rX)rr�r�r�s&   rr��Debugger.show_stackSs�������D�K�K�O�O�$5�$5�$/����T�Z�Z��$N�N�D��r��z�z�z��8�8�-�-�d�j�j�$�?����
�
�e�'���!�!�B��$�+�+�/�/�+�+�#'�� ����
�$%�D�K�K��!rc�l�UOO2%cUO2P!P!r
)r�r�r�r�s&rr��Debugger.show_source`s&���<�<������!�!�#�rc�D�U]*UmUO2P!��)rr�)r�	stackitems&&r�
show_frame�Debugger.show_frameds���q�\��
����rc�$�UOoUOO2%c%U%f[UOQ2UmL.U%c'PUmUO2]UOQ$UO
2P!)rurz)�localsviewerr�r��NamespaceViewerr�rXr�)r�lvs& rr��Debugger.show_localshse��
�
�
���<�<������$3�D�L�L�(�$K��!���$(��!����
�)*����X�&����rc�$�UOoUOO2%c%U%f[UOQ2UmL.U%c'PUmUO2]UOQ$UO
2P!)rvrz)�
globalsviewerr�r�r�r�rXr�)r�gvs& rr��Debugger.show_globalstse��
�
�
���=�=������%4�T�]�]�I�%N��"���%)��"����
�*+��
�
�h�'����rc��UOoUOoUOoU%fP9qVL/UOoUOoU%cU%cVVIcPoU%c1UOVQUOOO2U%c3UOVaUOOO2P!P!r
)	r�r�r�f_locals�	f_globals�	load_dictrB�interp�rpcclt)r�forcer�r�r�ldict�gdicts&&     rr��Debugger.show_variables�s���
�
�
��
�
�
���
�
��� � �E�E��N�N�E��O�O�E��b�U�^���
��L�L��t�|�|�':�':�'A�'A�B�
��L�L��t�|�|�':�':�'A�'A�B�rc�>�UOOV2P!)zjSet a filename-lineno breakpoint in the debugger.

Called from self.load_breakpoints and EW.setbreakpoint
)rC�	set_break�rr=r>s&&&r�set_breakpoint�Debugger.set_breakpoint�s��
	
�����8�,rc�>�UOOV2P!r
)rC�clear_breakrs&&&r�clear_breakpoint�Debugger.clear_breakpoint�s�������X�.rc�>�UOOU2P!r
)rC�clear_all_file_breaks)rr=s&&r�clear_file_breaks�Debugger.clear_file_breaks�s�����&�&�x�0rc���UOOOFD?oUOOoUO
FDoUO
V#2J	JA	P![cJSh9h)z>Load PyShellEditorWindow breakpoints into subprocess debugger.)rBr~�inversedict�ior=�breakpointsrr�)r�editwinr=r>s&   r�load_breakpoints�Debugger.load_breakpoints�sb���|�|�)�)�5�5�G��z�z�*�*�H�
�%�1�1�F��'�'��9�2�6��
"�
��
�s�%A(�(	A7�2A7�6A7)r�r�r�r�r�r�r�r�r�r�r�r�r�r�r~r�rr�r�rCrEr�rFrBrOrWr�rUr
r�)%r!r"r#r$r%r�r�r�r�rWr�r�r
rJrXrDrr�r�r�r�r�r�rSrNr�r�r�r�r�r�rrrrr&r'�r)s@rr@r@Us������
�F��G��G��H��K��L��M��$'%�R�$J �X0�d6� ������9�&�$��
�
�C� -�/�1��rr@c�``�\sQsQsnQsQsQ
QksQsQsQs	Qs
Q	sQ
sQs
QsUsP!)r��z#Code stack viewer for debugger GUI.c���[O2%c[OV2L[OV]PQ5V mV0m,UmP!)�P)�width)r�isAquaTkrr
r~rr�)r�masterr~rs&&&&rr
�StackViewer.__init__�s@���?�?���
�!�!�$�/��!�!�$�b�9��
�����
rc��VmUO2[[U22FD�oV*vqEUOQ*oUO
oUOoUOo	]PH"o
U
OV�2oUO2oU	Q7c
QVeU1*oLQViV[1*oV26Xc
QU*oUOU2J�	UdUOU2P!P!QoK�9h)r!r5z%s, line %d: %sz%s.%s(), line %d: %sz> )r5�N)
r��clear�range�lenr�r-r.r;�	linecache�getline�stripr��select)
rr��indexr�rr>�modnamer<r=�funcnamer#�
sourceline�items
&&&          rr��StackViewer.load_stack�s����
��
�
���s�5�z�"�A�!�H�M�E�
��/�/�*�5���<�<�D��'�'�H��|�|�H��"�*�*�8�<�J�#�)�)�+�J��?�*�(�G�Z�+H�H��-��17�1E�E���z��d�{���K�K���'#�(���K�K�����!
���s�C2�2C8c�X�UO%c[OV2!P!��Override base method.)r�r�popup_eventr[s&&rr0�StackViewer.popup_event�s!���:�:�:��+�+�D�8�8�rc��UOoUOQUOQ5UOQUOQ5P!)r/zGo to source line)�labelrezShow stack frame)�menu�add_command�goto_source_line�show_stack_frame)rr4s& r�	fill_menu�StackViewer.fill_menu�sI���y�y�����2�!%�!6�!6�	�	8����1�!%�!6�!6�	�	8rc��]St96:c[UO26c3LP!UOOUOU*2P!P!r.)r"r�rr��rr's&&r�	on_select�StackViewer.on_select�s:����'��D�J�J��'�'��H�H����
�
�5� 1�2�(rc�*�UOU2P!r.)r�r;s&&r�	on_double�StackViewer.on_double�s������rc�`�UOOQ2oUOU2P!��active)�listboxr'r�r;s& rr6�StackViewer.goto_source_line�s$�����"�"�8�,������rc���UOOQ2o]St96:c[UO26c3LP!UOOUOU*2P!P!rB)rDr'r"r�rr�r;s& rr7�StackViewer.show_stack_frame�sN�����"�"�8�,����'��D�J�J��'�'��H�H����
�
�5� 1�2�(rc�l�]St96:c[UO26fP!P!UOU*vq#UOoUOo[O
O
U2%c9UOOU2oU%cUOU2P!P!P!r�)
r"r�r-r.r8r9�isfiler~�open�gotoline)rr'rr>r<r=�edits&&     rr��StackViewer.show_source�s����U�,�S����_�,��-���
�
�5�)�
���|�|���#�#��
�7�7�>�>�(�#�#��:�:�?�?�8�,�D���
�
�f�%��$r)r~rr�r
)r!r"r#r$r%r
r�r0r8r<r?r6r7r�r&r'rs@rr�r��s:����)�
��49�
8�3�
 � �3�
	&�	&rr�c�D`�\sQsQsnQsQQksPsQQksQsQs	Us
P!)	r��z/Global/local namespace viewer for debugger GUI.c
��]o](oU%c][U2*oVmV m]PHoUO	2Um]<UO
m]<UO
m[U29Um	oUOO]QQ5[Vr]QQ5UmUOOQQ5[UQQ59UmoUOQ	Q
Q5[U[!Q[#](U22]]VE1Q
59Umo	U	OQQ]Q5U	O&UQ$UO(U	Q$[U	29Umo
U	O-]]U
QQ5UmUO1U2P!)r�r{r|�groove)rd�borderwidth�reliefrw)rx�vbar)�name�right�y)rnrx�,)rz�scrollregionrm)rnrxr}re�yscrollcommand�nw)�windowrb)r"r�title�reprlib�Repr�repr�	maxstring�maxotherrrr�r�r3rrT�Canvas�min�max�canvas�yviewr��subframe�
create_window�sfidr�)rrr]�odictrrzr^rrTrfrhs&&&&       rr
�NamespaceViewer.__init__�sO���������E�
�]�F����
���L�L�N��	� ��	�	����	�	��"�6�]�*��
�U��
�
���q�v��.��5�!�H�M��
��
�
���S��!�$�U��8�8��	�D��	�	�w�S�	�)�%�e�-0��c�"�f�o�-F�45�q�%�3H� J�	J���f�	����f�Q��7� �,�,��Y��#'�8�8��� �#(��=�0��
���(�(��A�h�t�(�L��	����u�rc��VOIcU%fP!UOoUOo[UOO22FDoUO
2J	PUmU%f"[UQQ5oUO]]Q5L�UO2o[U2o	]o
S	FD�oV*oUOOU2o
U%cU
]Po
[VKQ5oUOU
]QQ5[U]]Q5oUO]U
2UOU
]QQ5U
]*o
J�	VmUO2UO2oUO!2oUO"o]]V�1UO"Q$UQ6�cQUQ	$UO%]Q
5P!UUQ	$UO%]Q
5P!)N�Noner�rqr[)rrrs�sticky)rrRrYrXrz)r})�
prev_odictrhr�list�children�valuesrZr�r��keys�sortedr`�Entry�insert�update_idletasks�winfo_reqwidth�winfo_reqheightrfr�)rrkr��
rpc_clientrhr�c�l�	keys_list�namesrrrUr��svaluerrzrfs&&&&             rr��NamespaceViewer.load_dicts����O�O�#�E���=�=���
�
���h�'�'�.�.�0�1�A�
�I�I�K�2������h�V�,�A�
�F�F�q��F�#��
�
��I��9�%�E��C������������.���#�A�b�\�F��(�.�����3�q���6��(�!��;������F�#����3�q���6��!�e��� ���!�!�#��'�'�)���)�)�+������'(�!�U�&;����N�#��C�<�"�F�8���J�J�a�J� �%�F�8���J�J�a�J� rc�<�UOO2P!r
)rrZr�s&rrX�NamespaceViewer.closeRs���
�
���r)
rfrr3rrpr`rjrhr]rTr
)r�N)r!r"r#r$r%r
rpr�rXr&r'rs@rr�r��s$����5��6�J�4!�l�rr��__main__)�mainzidlelib.idle_test.test_debugger)�	verbosity�exit)r%�bdbr8�tkinter�tkinter.ttkrrr+r�idlelib.scrolledlistr�idlelib.windowr�Bdbrrrr@r�r�r!�unittestr��rr�<module>r�s����"�	��(��-�)�7�#�'�'�7�:
(�	�P�P�f
Q&�,�Q&�hW�W�t�z����	*�a�e�D�r

Youez - 2016 - github.com/yon3zu
LinuXploit