News for hackers. Stuff that matters.
Re:The Debugging Mindset by osullivj on Monday April 03, 2017 @04:18AM (#14021308)
Debuggers like Visual Studio, windbg, gdb are excellent tools but they can't always take you to the problem, especially for multi-threaded server code. Yes, they're great for bringing your mental model of the code execution into line with the real behaviour of the code. But for nailing tricky sunchronisation issues in multi-threaded server code you'll need plenty of configurable logging, and memory profilers like valgrind or purify.
Re:The Debugging Mindset by tejasmanohar on Monday April 03, 2017 @04:24AM (#14021338)
Interesting point. IDEA supposedly added better support for "async stacktraces" recently-- https://blog.jetbrains.com/idea/2017/02/intellij-idea-2017-1... but I'm yet to give it a shot.
Re:The Debugging Mindset by osullivj on Monday April 03, 2017 @10:08AM (#14022834)
Would be good to see this in PyCharm to enable stepping over yield in @tornado.gen.coroutine methods. The whole step over step in debugging model assumes traditional imperative code and stack frame continuity.