Hi @Arne Martensen ,
Welcome to Microsoft Q&A!
Which version of Visual Studio are you using? What is your project type?
Did you mean that it also occurred in new created projects?
Please ensure that the build configuration is set properly.
You can update your Visual Studio and try to Tools > Options > Debugging > uncheck “Enable Just My Code”.
Sincerely,
Anna
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.