To configure Visual Studio Code to debug C# scripts on OSX, I followed through all the steps listed in the article below:
Debugging C# on OSX with Visual Studio Cod
It seems like this will be different for every scenario.
For me what @Jeferson Tenorio worked, but it needed a few more steps so let's add them:
Go to your launch.json file, and under configurations/program you will find this:
${workspaceFolder}/bin/Debug/
Simply replace and with your target framework, in my case that would be netcoreapp2.0 and then your project name (if you haven't changed anything your project name should be the same as the folder where you created your project), it should look something like this:
"program": "${workspaceFolder}/bin/Debug/netcoreapp2.0/MyProject.dll"
I hope this helps.