CarterHelloWorldWebApp.zip (1.1 MB)
Im running the attached app from the console.
It writes the process id to the console so I was attaching the debugger in Fire to that process.
I set a breakpoint on the line await res.WriteAsync(‘Health’) in HomeModel.pas and I do a curl http://localhost:5050/health. The breakpoint is hit and from there I was going into locals.
If you go into self and start expanding the properties, it doesnt take long for the debugger to crash.
I see this
~> Attached to dotnet.
~> Trying to debug PID 18984
~> Microsoft.AspNetCore.Hosting.Internal.WebHost:Information: Request starting HTTP/1.1 GET http://localhost:5050/health
System.NullReferenceException: Object reference not set to an instance of an object
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object