From 77daa58f4e03d294322eca0009a211ff2f964fd4 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 8 Apr 2017 14:24:58 +0200 Subject: [PATCH] Document debugging Dolphin/KIO plugin --- fileitemactionplugin/testing.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 fileitemactionplugin/testing.md diff --git a/fileitemactionplugin/testing.md b/fileitemactionplugin/testing.md new file mode 100644 index 0000000..b00a540 --- /dev/null +++ b/fileitemactionplugin/testing.md @@ -0,0 +1,12 @@ +# Testing and debugging Dolphin/KIO plugin with Qt Creator + +1. Build as usual, ensure `NO_FILE_ITEM_ACTION_PLUGIN` is turned off +2. Copy `*.desktop` file to `~/.local/share/kservices5` and enable it in Dolphin + if packages version is not already installed +3. Add new config for run in Qt Creator and set `dolphin` as executable +4. In execution environment, set + * `QT_PLUGIN_PATH` to directory containing plugin `\*.so`-file + * `QT_DEBUG_PLUGINS` to 1 for verbose plugin detection + * `QT_XCB_NO_GRAB_SERVER` to 1 to prevent grabbing so the debugger is usable +5. Ignore warning that executable is no debug build, it is sufficiant when + plugin is debug build