Reference two great god of posts:
https://blog.csdn.net/soband_xiang/article/details/82914195
https://blog.csdn.net/weixin_34349320/article/details/93389797
Basically reading can debug, but: where the last part of the second link becomes this option: attach to "dotnet" - the choice of the type of code, to select Managed (.NET Core for Unix)