I used to debug my solution by clicking on that button in VSCode:
I'm using this launch.json file in .vscode/ folder
It used to work just fine, but it doesn't attach anymore.
The solution is to check the line "Listening for debug on port XXXX" in the terminal's output just after launching the solution with "saf run"
Then change the "port" number accordingly in the launch.json file:
The port probably changed because I was running 2 different solutions simultaneously, so the same port can't be used on both of those solutions, then it changed automatically.