在这个类:MyABP.Web.Startup.MyABPWebMvcModule 中 的 PreInitialize 方法 添加一句:
Configuration.Modules.AbpWebCommon().SendAllExceptionsToClients = true;//向前端返回完整错误日志
如图: