Giter Club home page Giter Club logo

Comments (2)

Praburaj avatar Praburaj commented on September 2, 2024

This is because mono does not give debug information like file name or line numbers in the exception messages (i tried passing --debug switch to mono.exe as well). With a recent fix that I pushed for error page middleware, function names are printed like below. If mono gives file name and line numbers with exception messages, the middleware should automatically handle it. I guess this bug can be closed if there are no concerns.

An unhandled exception occurred while processing the request.
Exception: Hey what's up
MusicStore.Controllers.HomeController.Index () [0x00000]
• Stack 
• Query 
• Cookies 
• Headers 
• Environment
• Exception: Hey what's up
o MusicStore.Controllers.HomeController.Index () [0x00000]
o

o System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
o

o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000]
o Microsoft.AspNet.Mvc.ControllerActionExecutor+d__2.MoveNext () [0x00000]
o

o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000]
o System.Runtime.CompilerServices.TaskAwaiter1[System.Object].GetResult () [0x00000] o Microsoft.AspNet.Mvc.ControllerActionExecutor+<ExecuteAsync>d__1.MoveNext () [0x00000] o o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] o System.Runtime.CompilerServices.TaskAwaiter1[System.Object].GetResult () [0x00000]
o Microsoft.AspNet.Mvc.ControllerActionInvoker+d__1.MoveNext () [0x00000]
o

o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000]
o System.Runtime.CompilerServices.TaskAwaiter1[Microsoft.AspNet.Mvc.IActionResult].GetResult () [0x00000] o Microsoft.AspNet.Mvc.FilterActionInvoker+<InvokeActionMethodFilter>d__1.MoveNext () [0x00000] o o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] o Microsoft.AspNet.Mvc.FilterActionInvoker+<InvokeAsync>d__1.MoveNext () [0x00000] o o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] o Microsoft.AspNet.Mvc.ControllerActionInvoker+<InvokeAsync>d__1.MoveNext () [0x00000] o o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] o Microsoft.AspNet.Mvc.MvcRouteHandler+<RouteAsync>d__1.MoveNext () [0x00000] o o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] o Microsoft.AspNet.Routing.Template.TemplateRoute+<RouteAsync>d__1.MoveNext () [0x00000] o o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] o Microsoft.AspNet.Routing.RouteCollection+<RouteAsync>d__1.MoveNext () [0x00000] o o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] o Microsoft.AspNet.Builder.RouterMiddleware+<Invoke>d__1.MoveNext () [0x00000] o o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] o Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware1+d__1[Microsoft.AspNet.Security.MicrosoftAccount.MicrosoftAccountAuthenticationOptions].MoveNext () [0x00000]
o

o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000]
o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000]
o Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware1+<Invoke>d__1[Microsoft.AspNet.Security.Twitter.TwitterAuthenticationOptions].MoveNext () [0x00000] o o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] o Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware1+d__1[Microsoft.AspNet.Security.Google.GoogleAuthenticationOptions].MoveNext () [0x00000]
o

o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000]
o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000]
o Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware1+<Invoke>d__1[Microsoft.AspNet.Security.Facebook.FacebookAuthenticationOptions].MoveNext () [0x00000] o o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] o Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware1+d__1[Microsoft.AspNet.Security.Cookies.CookieAuthenticationOptions].MoveNext () [0x00000]
o

o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000]
o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000]
o Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware1+<Invoke>d__1[Microsoft.AspNet.Security.Cookies.CookieAuthenticationOptions].MoveNext () [0x00000] o o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] o Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware1+d__1[Microsoft.AspNet.Security.Cookies.CookieAuthenticationOptions].MoveNext () [0x00000]
o

o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000]
o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000]
o Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1+d__1[Microsoft.AspNet.Security.Cookies.CookieAuthenticationOptions].MoveNext () [0x00000]
o

o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000]
o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000]
o Microsoft.AspNet.Builder.Extensions.MapMiddleware+d__1.MoveNext () [0x00000]
o

o System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000]
o System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000]
o Microsoft.AspNet.Diagnostics.ErrorPageMiddleware+d__1.MoveNext () [0x00000]

from diagnostics.

suhasj avatar suhasj commented on September 2, 2024

Sure we can check again once we have coreclr support on mac

from diagnostics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.