What is the best way to debug a plugin?
Currently I do some dump via messagedialogs, but I don't think that's the common way of debugging ;)
But KeePass compiles a PLGX-file which cannot run in a debug, or can it?
Thank you for your help.
A PLGX file should be created for the final distribution; it is not suited for debugging.
When you compile your plugin using Visual Studio, it creates a DLL, which you can debug. After opening your plugin's solution, go 'Project' -> 'YourPlugin Properties' -> tab 'Debug', choose 'Start external program' as 'Start Action' and select the 'KeePass.exe' in the output folder of your plugin (which contains your plugin DLL). When you now start debugging, Visual Studio runs KeePass, and breakpoints within your plugin work fine.
It works great!
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.