Hello @Peter Martens,
Welcome to Microsoft Q&A forum.
Is "Enable Just My Code" option selected in Tools > Options > Debugging > General > Enable Just My Code?
When you attached to process, in "Attach to:" box, did you select "Automatic"? If so, please try to select specific code types and check if it works.
If this issue only appears after updating Visual Studio 2022 to 17.6.2 without changing anything else, then please try to submit a ticket on our Developer Community and if possible, try to downgrade VS 2022 to a previous version as a temporarily workaround. If you do submit a ticket, please share us the thread link for better tracking and help.
If you changed any other settings, please let us know.
Feel free to contact us.
Sincerely,
Tianyu
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.