breakpoints don't work

• May 7, 2018 - 20:29

Sorry, basic question here...
I was finally able to compile master on windows 10 QT 5.10 QT Creator 4.6
While running in debug mode, I see in the application output several lines such as:
unknown:unknown: changeState NORMAL -> NOTE_ENTRY
Searching in the code it seems to come from void ScoreView::changeState(ViewState s) in events.cpp
So I put a breakpoint at the beginning of this function, but QTCreator doesn't "stop" on it.
I'm used to VisualStudio where breakpoint "just work" but completely new to QTCreator and have no clue on what's the problem could be.
Thanks in advance for your help.


Comments

In reply to by frfancha

Breakpoints normally "just work" in QtCreator also. So, either this line isn't actually being hit, or you are not debugging the process you think you are, or the build was done without debugging info.

One thing I can see is that you apparently failed to do the install step, and/or you aren't running the executable you actually installed. The error message about chords_std.xml clued me in about that. Installing is not optional to have a working environment; MuseScore needs to be able to find auxiliary files relative to the executable itself. You can choose where to install if you don't like the win32install suggestion given in the compile instructions, but you've got to run the install step, and again, make sure you actually choose the installed executable in the run step.

Do you still have an unanswered question? Please log in first to post your question.