This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes jdb & Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "jdb & "Java Cookbook"" Watch "jdb & "Java Cookbook"" New topic
Author

jdb & "Java Cookbook"

William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 984

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

Joined: Jan 30, 2002
Posts: 3451
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jdb & "Java Cookbook"
 
Similar Threads
Best Java book you have read this year?
question about jdb
Java Debugger security question
A really beginner question here.
Easy java debugger