Am trying to learn how to use jdb (I know how to use dbx) and recipe 1.12 in "Java Cookbook" isn't working as advertised. The example has you write a program with compile errors, 1] run it with "java programnamewithnoextension" which correctly generates an exception error message than, 2] "jdb programnamewithnoextension" which can't find the class file as one was never created. The book pretends that the debugger starts up and reads in the program at that point. My problem with trying to understand how to work jdb is that there are all sorts of threads running around. Which confuses me.
posted 13 years ago
Welcome to the world of parallel processing! jdb sux when it comes to debugging multi-threaded applications. But, almost all debuggers suck when it comes to multi-threaded applications. You almost have to employ medieval technologies like verbose log files to trap bugs in threaded apps. I agree, jdb is not much fun to use.
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher