Why no compiler help use log verbose thing

Usually, after user report has a bug,
we get the log, log only has 2 thing

  1. NullReferenceException on line x
  2. What data user has input

Then, we need make some test case or input in UI manually
Maybe need 0.5 - 1 day to reproduce it
It's too trouble

Why haven't a compiler add log some like debug mode watch function

Original

var foo = "ABC"
var bar = "DEF"

foo = bar

After compile

var foo = "ABC"
Console.WriteLine("foo = \"ABC\"")
var bar = "DEF"
Console.WriteLine("bar = \"DEF\"")

foo = bar
Console.WriteLine("foo = \"DEF\"")

Off Topic: Where did you find a post banner image

Did you find this post useful? Show some love!
DISCUSSION
Classic DEV Post from Nov 19

What’s a concept you understand now, but took you forever to grasp?

I’m sure we all have plenty of answers to this one, but sometimes we forget how...

Benny Leung

New to dev.to?

Browse All-Time Top Posts