KDE Utils/KGpg
Building
Most of the information about building KGpg are available in Get_Involved/development.
Configuring the build
This additional information can be put in your $HOME/.kdesrc-build to enable the debug build.
options ki18n cmake-options -D KGPG_DEBUG_TRANSACTIONS=On -D CMAKE_BUILD_TYPE=Debug end options
Alternatively in case KGpg is build using git and CMake directly. The Cmake command is:
cmake -D KGPG_DEBUG_TRANSACTIONS=On -D CMAKE_BUILD_TYPE=Debug path/to/project/root
Useful tips
Shut down the old version
In case an older version of KGpg is already running starting the newly built one will only tell the older one to raise, so you will actually not get the behavior of the new version. Either click Quit from the File menu or use the shortcut to trigger this action, usually Ctrl-Q. Please note that pressing Alt-F4 or closing the window will not quit the old KGpg instance in the default configuration, but will just cause it to hide in the system tray.
You can also tell KGpg to quit from the command line:
qdbus org.kde.kgpg /MainApplication quit
Enable debug printing
When you run KGpg from the command line it will print out some useful status information. This printing can be controlled using the tool kdebugdialog. Enter kgpg in the filter at the top of the application window and enable all entries you find. Please note that you do not need to enable the one labled kgpgconf, as that is a totally unrelated application.