DEV Community

Benny Leung
Benny Leung

Posted on

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

Top comments (0)