I know that this won't be a direct answer. But If you or someone looking at this thread are runing on Docker, this might be what you are looking for
Debug NestJS application in Docker with Jetbrains WebStorm IDE