Why no compiler help use log verbose thing

github logo ・1 min read

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

twitter logo DISCUSS
Classic DEV Post from Oct 31 '18

📊 Languages' Popularity on DEV

Some statistics about language tags on DEV

Benny Leung profile image

👋 Hey dev.to reader.

Do you prefer sans serif over serif?

You can change your font preferences in the "misc" section of your settings. ❤️