Re:Donald Knuth Quotes
by jgrahamc on Monday May 21, 2012 @06:35AM
(#4002171)
I saw Knuth talk at Kepler's Bookstore in Menlo Park some years ago. Someone asked him which language was better Java or C++. He replied: "Whichever has the better debugger".
[ Parent
| on HN ]
Re:Donald Knuth Quotes
by AndrewDucker on Monday May 21, 2012 @06:44AM
(#4002192)
Now _that_ is wisdom. It's the tooling that's important, of which the language is only one part.
Are most debuggers now equivalent nowadays?
All I need it to do is set breakpoints and inspect variable/memory values.
No, they aren't. With Java you can change code while the application is running and it will be hot-swapped after you have recompiled it.
I learned about this feature when playing a bit in Eclipse, forgot to kill the program between edits, and got a warning that the recompiled class couldn't be hot-swapped because its signature changed. And then I sat there in awe; I can just dream about this functioning reliably with C++.
Microsoft Visual C++ supported "Edit and Continue" for many many years.
I remember using this in MSVC 6 - so at least 14 years ago.
"Supports", "works" and "is usable" are three totally different things. I doubt that E&C is truly usable since even much simpler things -- for example, data breakpoints when debugging native+managed code -- is unsupported in VS2010. (Needed exactly that today.) E&C is disabled also for C# as soon as you turn on native-code debugging.