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 Jun 18

What are your programming blogs?

Hi. I need programming blogs to read. So, what are your programming blogs? You ...

READ POST
Follow @aligoren to see more of their posts in your feed.
Benny Leung
Member since Aug 10, 2018
Trending on dev.to
What are the main benefits of being a self-taught developer compared to being educated with a degree and mentoring?
#discuss
What types of features typically lead to lots of tech debt?
#discuss
Do not be this kind of developer
#career
Designing A Voting System For 1 Billion on the Blockchain (Part 2) - How To Keep A Secret
#blockchain #opensource #architecture #discuss
The Most Important Non-Programming Skills for Programmers
#career #leadership #tips #culture
Any idea how to start blogging as a developer?
#discuss #idea #blog
Ways to earn from Open Source Project as an Owner
#healthydebate #discuss #hacktoberfest
Thoughts on GitHub Actions?
#github #discuss