Bug 397273 - Not able to set breakpoints in other file than main.cpp
Summary: Not able to set breakpoints in other file than main.cpp
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-08 14:11 UTC by Martin
Modified: 2018-08-08 18:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin 2018-08-08 14:11:13 UTC
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 qt creator I tested it too (with g++ and gdb), but there is the same problem.

I used to compile the master from github from today.

Best regards,

Martin
Comment 1 Albert Astals Cid 2018-08-08 18:11:13 UTC
This is not a bug, this is you not doing something right, so let's not use the bug tracker for this. 

Either hop into #okular in freenode IRC for help or to the mailing list.