Visual Studio 2019 how to debug musescore4
Hi,
I can compile and start the current version MuseScore4.
But since I'm a bit inexperienced with C++ projects,
I can't find a way to debug the program. "Click the Local Windows Debugger button on the ▶ main toolbar, or go to Debug > Start Debugging, or press F5" does not work.
The following error occurs:
The program "C:Users\xxx..\MuseScore\msvc.build_x64\x64\RelWithDebInfo\ALL_BUILD"
cannot be started.
Access denied
What am I doing wrong.
I need some advice.
Sincerely, JAK
Attachment | Size |
---|---|
Debug Fehler.png | 7.88 KB |
Comments
You seem to be trying to run/Debug from the build directory, but should do so from the install directory instead.
In reply to You seem to be trying to run… by jeetee
Sure, but how do I debug?
In reply to Sure, but how do I debug? by Jak@adoka.de
Not sure as I don't use VS for this, but are you on the INSTALL target when trying to debug?
In reply to Not sure as I don't use VS… by jeetee
The same result
In reply to The same result by Jak@adoka.de
Strange: "C:Users\xxx..\MuseScore\msvc.build_x64\x64\RelWithDebInfo\ALL_BUILD" is also NOT the resulting binary file, so you'll definitely have to look into your run/debug settings to make it point to the correct thing.
In reply to Strange: "C:Users\xxx… by jeetee
I'm a little further. Until main() I already come to my breakpoint.
Thank you very much.
In reply to I'm a little further. Until… by Jak@adoka.de
were you able to debug? i am facing same problem as you mentioned
Try right clicking on the
mscore
project, and setting it as the startup project. Then debug. From the above it sounds like you were trying to debug the first project,ALL_BUILD
.