Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jdb & "Java Cookbook"  RSS feed

 
William Barnes
Ranch Hand
Posts: 1046
2
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!