📜  .net core 中的异常含义 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:23.104000             🧑  作者: Mango

代码示例1
//Using the snippet shown above, the error page will show the offending line in red, with a variable number of lines of code above it. The number of lines is determined by the value of SourceCodeLineCount, which is set to 2 in this case. 


var options = new DeveloperExceptionPageOptions
{
   SourceCodeLineCount = 2
};  
app.UseDeveloperExceptionPage(options);