Bug 678925 - Debugging plugins with windows
Apply patch from Hartmut Kuhse that enables plug-in debugging on Windows by stopping the process using Windows API, and providing a small executable "gimp-plugin-resume.exe" to resume the stopped plug-in.
This commit is contained in:
@ -46,7 +46,9 @@ The steps to debug a plug-in are as follows:
|
||||
5. Set breakpoints where you want the plug-in to stop in the debugger
|
||||
|
||||
6. Send the CONT signal (kill -CONT <pid>) to the plug-in process
|
||||
|
||||
(When compiled with Windows, resume the plug-in process with
|
||||
gimp-debug-resume.exe <pid>)
|
||||
|
||||
7. Enter "continue" in the debugger. The plug-in will then continue
|
||||
and break at the breakpoints.
|
||||
|
||||
@ -105,3 +107,8 @@ GIMP_PLUGIN_DEBUG_WRAPPER=debugger
|
||||
debugger refers to the debugger program, such as valgrind. You can
|
||||
put command line options here too, they will be parsed like they do
|
||||
in the shell.
|
||||
|
||||
When compiled with Windows, the plug-in process is halted by Windows functions.
|
||||
It must be resumed externally by invoking gimp-debug-resume.exe <pid>
|
||||
The plug-ins pid can be found out by invoking gimp-debug-resume.exe
|
||||
without parameters. It shows the pid of all running processes.
|
||||
|
||||
Reference in New Issue
Block a user