File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes debug custom doclet in javadoc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "debug custom doclet in javadoc" Watch "debug custom doclet in javadoc" New topic

debug custom doclet in javadoc

Ven B

Joined: Apr 26, 2003
Posts: 2
I am writing a custom doclet. When i run javadoc I specify the custom docket using
javadoc -doclet <customdocletname>
Is there any way to debug the custom doclet?
When javadoc is run under some debugging mode either using JDB or some means I should be able to put break points in the custom doclet class.
Ven B
Ven B

Joined: Apr 26, 2003
Posts: 2
I found the answer
To debug custom doclet in your editor use
String[] args = new String[] {"-doclet","fullyQualified Custom Doclet Classname","java file names as input"};;
I found this on sun javadoc forum:
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Hi Ven,
Welcome to JavaRanch, the absolute best site on the www for Java information. We don't have many rules around here, but we do have one. Please change your display name to a first and last name to comply with the JavaRanch Naming Policy. You can change it here. Thank you for your cooperation.

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:
subject: debug custom doclet in javadoc
It's not a secret anymore!