mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
Add some doc/sample on LocalDebugger
This commit is contained in:
@@ -20,6 +20,27 @@ The :class:`Debugger` have some functions called on given event that can be impl
|
||||
|
||||
|
||||
|
||||
:class:`LocalDebugger`
|
||||
""""""""""""""""""""""
|
||||
|
||||
.. note::
|
||||
|
||||
See sample :ref:`sample_local_debugger`
|
||||
|
||||
The :class:`Debugger` is the base class to perform the debugging the current process.
|
||||
It is based on :func:`VectoredException` (see :ref:`sample_vectoredexception`)
|
||||
|
||||
There is not much documentation for now as the code might change soon.
|
||||
|
||||
|
||||
|
||||
.. autoclass:: LocalDebugger
|
||||
:members:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
:class:`Breakpoint`
|
||||
"""""""""""""""""""
|
||||
|
||||
|
||||
+59
-1
@@ -261,6 +261,9 @@ Output::
|
||||
Debugging
|
||||
"""""""""
|
||||
|
||||
:class:`Debugger`
|
||||
'''''''''''''''''
|
||||
|
||||
.. literalinclude:: ..\..\samples\debugger.py
|
||||
|
||||
Ouput::
|
||||
@@ -281,4 +284,59 @@ Ouput::
|
||||
Loading <C:\Windows\system32\shell32.dll>
|
||||
Loading <C:\Windows\SYSTEM32\WINMM.dll>
|
||||
Loading <C:\Windows\system32\ole32.dll>
|
||||
Ask to load <ole32.dll>: exiting process
|
||||
Ask to load <ole32.dll>: exiting process
|
||||
|
||||
|
||||
.. _sample_local_debugger:
|
||||
|
||||
:class:`LocalDebugger`
|
||||
''''''''''''''''''''''
|
||||
|
||||
In current process
|
||||
^^^^^^^^^^^^^^^^^^
|
||||
|
||||
.. literalinclude:: ..\..\samples\local_debugger.py
|
||||
|
||||
Ouput::
|
||||
|
||||
(cmd λ) python.exe .\samples\local_debugger.py
|
||||
Your main thread is 3864
|
||||
Code addr = 0x46000b
|
||||
GOT AN HXBP <3 at 0x46000b
|
||||
EXCEPTION !!!! Got a EXCEPTION_SINGLE_STEP(0x80000004L) at 0x46000c
|
||||
EXCEPTION !!!! Got a EXCEPTION_SINGLE_STEP(0x80000004L) at 0x46000d
|
||||
EXCEPTION !!!! Got a EXCEPTION_SINGLE_STEP(0x80000004L) at 0x46000e
|
||||
EXCEPTION !!!! Got a EXCEPTION_SINGLE_STEP(0x80000004L) at 0x46000f
|
||||
EXCEPTION !!!! Got a EXCEPTION_SINGLE_STEP(0x80000004L) at 0x460010
|
||||
EXCEPTION !!!! Got a EXCEPTION_SINGLE_STEP(0x80000004L) at 0x460011
|
||||
|
||||
|
||||
In remote process
|
||||
^^^^^^^^^^^^^^^^^
|
||||
|
||||
.. literalinclude:: ..\..\samples\local_debugger_remote_process.py
|
||||
|
||||
Ouput::
|
||||
|
||||
(cmd λ) python.exe .\samples\local_debugger_remote_process.py
|
||||
(In another console)
|
||||
I AM LOADING <C:\Windows\system32\uxtheme.dll>
|
||||
I AM LOADING <C:\Windows\system32\uxtheme.dll>
|
||||
I AM LOADING <C:\Windows\system32\uxtheme.dll>
|
||||
I AM LOADING <C:\Windows\system32\uxtheme.dll>
|
||||
I AM LOADING <kernel32.dll>
|
||||
I AM LOADING <C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.9600.17415_none_dad8722c5bcc2d8f\gdiplus.dll>
|
||||
I AM LOADING <comctl32.dll>
|
||||
I AM LOADING <comctl32.dll>
|
||||
I AM LOADING <comctl32.dll>
|
||||
I AM LOADING <comctl32.dll>
|
||||
I AM LOADING <comctl32.dll>
|
||||
I AM LOADING <comctl32>
|
||||
I AM LOADING <C:\Windows\SysWOW64\oleacc.dll>
|
||||
I AM LOADING <OLEAUT32.DLL>
|
||||
I AM LOADING <C:\Windows\system32\ole32.dll>
|
||||
I AM LOADING <C:\Windows\system32\MSCTF.dll>
|
||||
I AM LOADING <C:\Windows\SysWOW64\msxml6.dll>
|
||||
I AM LOADING <C:\Windows\system32\shell32.dll>
|
||||
I AM LOADING <C:\Windows\SYSTEM32\WINMM.dll>
|
||||
I AM LOADING <C:\Windows\system32\ole32.dll>
|
||||
Reference in New Issue
Block a user