Different ways to debug sitecore commerce engine:
Debug Sitecore Commerce Engine solution by attaching process in a same way as we do for Sitecore.
Not w3wp.exe but by attaching Sitecore.Commerce.Engine.exe process.
2. Hosting through Visual Studio
Stop Commerce Authoring in IIS and Run Sitecore Commerce Solution from Visual Studio after making below changes in Sitecore Commerce Engine project:
a. Set Profile to Engine
b. Set App Url to Commerce Authoring url
Then if everything is good, commerce engine will start running from Visual Studio.