Re:Why don't schools teach debugging? (2014)
by gambiting on Tuesday April 25, 2017 @06:46AM
(#14192310)
Well I don't know what OP meant, but I work in games programming, and the PS4 debugger will frequently lie to you in visual studio. You hover over a variable and it's just giving you a completely wrong value, which is correct if you look directly into memory window or assembly view.
I wouldn't consider this to be a very common use case though, it's a niche within niche.
Re:Why don't schools teach debugging? (2014)
by SticksAndBreaks on Tuesday April 25, 2017 @06:50AM
(#14192329)
Its that way in all the niches, which makes it a set of all niches ==> mainstream thing.
Re:Why don't schools teach debugging? (2014)
by duncanawoods on Tuesday April 25, 2017 @07:08AM
(#14192405)
Optimised C++ sure but you don't see this issue with C#. If you are using a high-level language that does not have a reliable debugger, time to change language.
One of the things that happens here is the more static and optimized a compiler output is, the harder it is to do source level debugging. Conversely, more dynamic, less optimized languages are easier to write and verify debuggers for. This isn't a strict ordering, of course, but a general trend. Unfortunately, the very aspect that make some languages easier to debug make them poor at some of the applications you might want the former for (cf C# and c++ as you bring up).
Luckily debugging is not merely the act of using a debugger !
Re:Why don't schools teach debugging? (2014)
by pjmlp on Tuesday April 25, 2017 @09:26AM
(#14193270)
I imagine this situation might surface when looking at optimized native code, either from JIT or AOT, for example via WinDbg sos plugin for .NET.
Still not a reason enough to avoid using a debugger.
Re:Why don't schools teach debugging? (2014)
by SticksAndBreaks on Tuesday April 25, 2017 @06:49AM
(#14192321)
Debuggers sometimes simply write wrong values into those nice gui-windows- do not update the values they show, or just dont inform the reader that the value ceased to exist- at all.
What do you mean by this?