Cant debug Visual Studio 2019 and 2017

Hi. guys
I’m having trouble debugging Unity2018.4.1f1 with visualStudio Community2017 and 2019.
I should be able to start debugging with the following steps.

1.Set a breakpoint in visualStudio
2. Press F5 to start debugging
3. Press the start button of Unity

But in my environment I can’t press Unity start button in the third step
Also, following the steps below will cause Unity to stop responding(When you stop debugging visualStudio, Unity will resume working).

1.Set a breakpoint in visualStudio
2. Press the start button of Unity
3. Press F5 to start debugging

To solve this problem, I disabled the firewall.
But the problem was not solved.

Please lend your wisdom to solve this problem.

Best regards

I’m having the same problem