This forum has been archived. All content is frozen. Please use KDE Discuss instead.
Please use bugs.kde.org for bug reports or feature requests. Development related questions should be directed to the okular-devel mailing list.

Debugging does not work properly

Tags: None
(comma "," separated)
marmsoler
Registered Member
Posts
12
Karma
0

Debugging does not work properly

Thu Jun 28, 2018 5:56 pm
Hello,

I'm trying to import okular from git into KDevelop with cmake. Building the project with Ninja an Llvm works fine, but when I try to debug the project, lldb stops automatically without showing the window. When I set a breakpoint in the first line of the main, I'm able to go through step by step for one line. At the line with "QApplication app(argc, argv);" the debugger stops. In the debugging window is the following Message:

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-martin'
qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.
*** Normal beendet ***

While debugging the breakpoints in the symbol column are not visible. Also when the debugging ends, the breakpoints are not visible but still are present which I see in the breakpoints tab.

I already tryed to build the project with gcc (-DCMAKE_CXX_COMPILER=g++) and debugging with lldb (did not find the option to change to gdb), but it does not change anything.

With qtcreator I can debug the hole main and okular starts after getting to the app.exec() loop. But I cannot set breakpoints in an other file.

Best regards,

Martin


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]