How to debug a custom doclet

Hi,
Can an incorrect taglet name cause javadoc generation to crash/ hang?
We have a custon taglet with the name of @abc.comment
However, someone added a period at the end of the name by mistake: @abc.comment.
This caused the cruise control build to crash...
Any clues on why this would have happened would be helpful. Also, how do you debug a custom doclet?
Thanks in advance.
BB

Also, how do you debug a custom doclet?Well, the usual way: you use a debugger ;-)
Since Javadoc features a programmatic interface, it's easy to write a simple main class.
Here is my test entry class, just replace "your.doclet.name.here" with the actual name of your custom doclet.
TestRun requires a filename as sole argument/cmd option, this filename should point to a standard Javadoc options file. To successfully use TestRun, the classes that make up your custom doclet and the JDK tools.jar should (probably) be in the classpath.
* @(#) TestRun.java 1.00
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.StringTokenizer;
* <code>TestRun</code>
* @author Thomas Behr 27.11.2003
public class TestRun
    public static void main( final String[] args )
        if ( args.length != 1 || !(new java.io.File( args[0] )).isFile() )
            System.err.println( "usage: java TestRun <filename>" );
            return;
        com.sun.tools.javadoc.Main.execute( "javadoc",
                                            "your.doclet.name.here",
                                            processOptionsFile( args[0] ) );
    private static String[] processOptionsFile( final String filename )
        final String options = readOptionsFile( filename );
        final StringTokenizer tokens = new StringTokenizer( options );
        final String[] jargs = new String[tokens.countTokens()];
        for ( int i = 0; i < jargs.length; ++i )
            jargs[i] = tokens.nextToken();
        return jargs;
    private static String readOptionsFile( final String filename )
        final StringBuffer buffer = new StringBuffer();
        BufferedReader br = null;
        try
            br = new BufferedReader( new FileReader( filename ) );
            String line;
            while ( (line = br.readLine()) != null )
                buffer.append( line ).append( "\n" );
        catch ( final IOException ioe )
            ioe.printStackTrace();
            buffer.setLength( 0 );
        finally
            if ( br != null )
                try
                    br.close();
                catch ( IOException ioe )
                    ioe.printStackTrace();
        return buffer.toString();
}

Similar Messages

  • How to debug a custom field on the screen.

    Hi All!
    I had created a custom field on the SAPMV45A screen no. 4459.Now if the user inputs data on the field through VA03 the values should update the corresponding tables.
    But my field is not getting updated in the respective table.Now how to get this debugged.I had handled this field through corresponding user exits.
    Please advise.
    Regards
    Praneeth.

    Hi praneeth,
    1. User-exit will only give
       pre-defined inputs.
    2. in debugging mode, try this out.
       in the same format.
      where programname = your programname of transaction
           fieldname   = fieldname on screen(struct-fieldname)
    (programname)fieldname
    regards,
    amit m.

  • Debugging a custom realm in WLS 6.1

    Hi all. I'm trying to find out how to debug my custom realm. I first implemented
    the DebuggableRealm and put log.debug calls in my realm. I then set the realm.debug
    property to "true" when I start the server. Is that it? The javadocs on debugging
    are very sparse. I wasn't able to find a javadoc for weblogic.logging.LogOutputStream.
    I also found a DebugSecurityRealm attribute in the ServerDebug element in config.xml
    but am thinking this is old (from 5.X?).
    Are there any other documents I should be looking at? Thanks!
    jeff

    Thanks very much, Utpal.
    I still can't find the class (or even the package for that matter) at
    http://e-docs.beasys.com/wls/docs61/javadocs/index.html
    And that sort of mystifies me. Still, your answer solves my current problem.
    I still don't fully understand the ConfigurationMBean
    stuff as a whole, and how they get bound to a particular realm; i.e. Do I need
    to write a MyRealmConfigurationMBean, and if so, how do
    I bind it to MyRealm?
    Note that the code I originally cited casted a BasicRealm return type to a BasicRealmMBean;
    It's not immediately apparent why one is
    even castable to the other, since they are two interfaces that
    are not on the same inheritance line (I don't think).
    Thanks for your time. I appreciate your help.
    -chris
    Finally,
    "Utpal" <[email protected]> wrote:
    Check this out
    C:\opt\bea\wls61sp2\config\mydomain>javap weblogic.server.Server
    Compiled from Server.java
    public final class weblogic.server.Server extends java.lang.Object {
    public static final java.lang.String DEFAULT_PROTOCOL;
    public static final int DEFAULT_PORT;
    public static weblogic.management.configuration.ServerMBean getConfig();
    public static weblogic.management.configuration.ServerDebugMBean
    getDebug();
    public static weblogic.management.configuration.SecurityMBean
    getSecurityCon
    fig();
    public static void initialize();
    It's weblogic.server.Server class.
    -utpal

  • How to debug start routine for the custom code?

    Hi Experts,
    Can anybody tell me how to debug the start routine? Also could you please guide me where to write the custom code in the start routine.
    Thanks in advance.
    Sharat.

    Rajkumar,
    Thank you for your help. but the blog link that you send it to me does not mention anything about ABAP debugger screen.
    What should I do once I get in to the ABAP debugger? the link only tells how to get to the ABAP debugger that I know.
    Also it say that I have to use the infinite loop to debugg the start routine.
    Can anybody tell me how to debugg start routine with the scren shots please. I don't know how to use infinite loop in the start routine. Is their any easy process step by step to see my particular record behavior in the start routine?
    I will assing you the points. again thank you.

  • How to maintain standard doclet's Javadoc options in custom doclet?

    I'm having some difficulties with a custom doclet. I've simply subclassed some of the standard doclet classes to do some custom html output (basically wrapping the output in the headers/footers/navigation of our department intranet). I want to use the standard doclet's configuration and a few of the standard doclet's Javadoc options (-nonavbar and -stylesheetfile, for example). I did not subclass ConfigurationStandard.java because I had no changes that I wanted to make to it. I'm not adding any new tags or command line options, but shouldn't I be able to use the standard doclet's command line options since I'm importing com.sun.tools.doclets.standard.*?

    Does your main doclet class (which has the start(RootDoc method)) also contain the optionLength and validOptions method.
    Check this url for more info http://java.sun.com/j2se/1.3/docs/tooldocs/javadoc/overview.html
    If you are just supporitng the standard doclet optiosn then you can implement these methods in ur doclet and internally call the corresponding methods of the standard doclet to get things done.
    public static int optionLength(String option) {
        return Standard.optionLength(option);
    public static boolean validOptions(String options[][],  DocErrorReporter reporter) {
        return Standard.validOptions(options, reporter);
    }Hope it helps

  • How to debug zrffous_c payment advice script program?

    Hi experts,
    Payment advice is printing through (ZRFFOUS_C) this program. I want to debug this program .I tried in this way.
    Put the break-point in the program and execute then enter the input data and execute then the following message is displayed.
    "A:FO:098 29.01.2009 PNB" after this stopped the program .How to debug this program? I want to find these values (REGUP-BELNR, REGUP-XBLNR) in the program .The location where these values selecting in the program?I tried but i didn't get.
    please give me the details or give me form name?
    please help me in this?

    Hi,
    Your procedure of debugging is correct.
    when you getting the error message , double click on the message on status bar and see wheather it is standard message or
    custome message.
    you are getting that error because of invalid data  so get  the valid data from respective  Functional consultant
    and try to debug again.
    You ll not get that error after giving valid data.
    Regards,
    Pravin

  • How to debug payment advice program

    Hi experts,
    iI copied program from RFFOUS_C and named as ZRFFOUS_C.
    payment advice is printing through ( ZRFFOUS_C) this program?
    If yes  how to debug this program ?.I want to konw the values printing in payment advice sheet  came from which subroutine.?
    I tried but i didn't get.I tried in this way, put the break point in the program and execute then fill the values and execute
    then the following message is displayed "A:FO:098 29.01.2009 PNB".
    I want to konw document (REGUP-BELNR) YOUR DOCYUMENT (REGUP-XBELNR) about this values came from which sub routine.
    If u know anybody pls gime the answer.pls help me in this .

    well at first you need to set a breakpoint somewhere in your program.
    Then you need to check if your program is customized for payment slips, otherwise standard program will get triggered but not yours.
    And finally you probably need to switch on "update task debugging" since output types are quite often processed in update task.

  • How to debug in dedicated unit test client

    Hello,
    We have a setup where we do all development in client 100, but have a separate client for unit tests. Since this is the client holding relevant test data, we would like to debug in this client.
    How can I achieve this in Eclipse, do I need to create two projects (one for each client) and open the object twice, or is it possible to setup using debug configurations or something similar?
    Regards

    Hi Matthias,
    in Java you need OS privileges to debug Java code running on any Java application server (and additionally set up the Java VM in debug mode and stuff like that). And once you have OS privileges, you can of course debug all Java VM processes/threads on the machine, regardless which application context they are currently running for.
    In ABAP you do NOT need any kind of OS privileges in order to debug. All you need is a user in the system/client with debug privileges, which is big advantage in terms of privilege separation. ABAP debugging on customer systems for example, which is a quite normal thing, would be much harder to realize, if we require any kind of OS privileges.
    To cut a long story short:
    As a user is required with debugging privileges in any ABAP system/client for ABAP debugging, it is not possible to realize a remote debugging in ABAPinEclipse just by specifying SID/client of the remote ABAP system.
    So you need to logon to the ABAP system/client (and set breakpoints there) in order to debug. And as the system/client logon to the ABAP backend in ABAPinEclipse is conceptually linked to a project, you need to have an open project for those ABAP system/clients you want to debug in.
    Regards,
    Christoph Stoeck, ABAP Language

  • How to debug a function module using in the generic datasource?

    Hi all,
    We have created a generic data source using function modulle and have been extracting the data for a single customer it contains single records but it has pulled out more than 10,000 records. how to debug the function module used in the data source.
    since we schedule for extraction in bi and back ground job gets triggered in ecc for extraction,
    i know in se37 we can select the function module name and then debug but still need to check while the bacground job is trigered through bi.
    Thanks

    Yes you can debug the Function Module.
    Open the function module in SE37 and put a break point in the code where you want to check from, then come to RSA3 and give the datasource name and check the Debug check box on this screen, once you click on the start button it will take you the place where you have placed the break point in the FM, by pressing F5 you can see the flow of the FM.
    Let me know whether this solves your issue.

  • How to debug ABAP Web services from Microsoft Visual Studio

    When developing .NET based Web services clients using Visual Studio that call Web services in SAP NetWeaver .NET developers would like to be able to debug inside SAP. In my blog <a href="/people/andre.fischer/blog/2007/02/07/how-to-debug-abap-web-services-from-microsoft-visual-studio to debug ABAP Web services from Microsoft Visual Studio</a> I would like to point .NET developers to the fact that SAP NetWeaver offers the option of external debugging to perform this task. Though the steps that have to be performed are described in the SAP Online Help I am sure that this option is not well known amongst the .NET developer community.

    Hello WilliamIV,
    >>How can I "configure" Visual Studio debugger to allow validation to work?
    Since I do not have a VS2012 environment, according to your provided link, I created a test demo with VS2013, however, both ways catch the validation error:
    If possible, you could have a try with VS2013 to see if it works or run the example on other machine with VS2012 to see if this is caused by the VS environment, in my side, I do not change any configuration, all are default.
    If I misunderstood this issue, please feel free to let me know.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to Debug During Event Linkage( Reciever Function Module )

    Hi all,
           If anybody knows how to debug a reciever function module in event linkage method then please respond.The scenario is that whenever service order is changed the change event will fire the custom business object which has a supertype BUS2088.

    Hi Nishanth,
    You can debug event linkage using the transaction SWUE.
    Here you can raise an event and specify an object key (using an already created service order). 
    Just flag the trigger receiver FM synchr. checkbox and your break point will be hit.
    Hope that helps.
    Cheers,
    Brad

  • How to debug a failed shopping cart transfer to ECC in classic mode

    Hello,
    I am using SRM 5 in classic mode, connected to ECC 6.0.
    I have an error message in the administrator monitor that tells me a transfer a shopping cart to ECC has failed.
    "Shopping cart 1000000123: Error creating the follow-on document"
    (Message is BBP_PU 367)
    This is located in the "local errors" section of the administrator monitor.
    The follow on doucment will be a PO in ECC.
    This message does not tell me the cause of the problem therefore I need to retrnsmit the cart and debug to find the error message that is being returned from ECC.
    I have browsed the forum and there are various answers about debugging but but have not found exact instructions on how to debug, and it is now always clear on whether the instructions apply to classic or extended classic.
    I have seen reference to the method in note 539978 that creates test data with FBGENDAT for the ECC BAPI. However this method does not seem suitable for a production system because it will interfere with all shopping carts being transferred while the shoppign cart with the problem is being debugged.
    Therefore I would like to debug in SRM just for the shoppign cart with the problem.
    Hopefully this thread will become the defintiive poitn of reference for debuggin a classic shopping cart transfer to ECC  in SRM 5.
    I propose to use function module BBP_PD_SC_TRANSFER to transfer the shopping cart again by entering the shopping cart GUID.
    Question 1) Can this error message be returned by checks in SRM before the BAPI is called in ECC? If so, where do I place a breakpoint to find the error determined by the checks in SRM?
    Question 2) If the system is getting as far as calling the BAPI in ECC, is it possbile to find the error message passed back from ECC by this approach, given that the actual transfer is carried out by the spooler?
    Question 3) If this approach is valid, in which method/function module do I need to place a breakpoint, at which statement is the error message passed back to SRM from ECC?
    Your help would be appreciated,
    Reagrds

    Hi Paul,
    a small correction to Dishas comment:
    The class CL_BBP_BS_ADAPTER_PO_CRT_470_1 is used for the backend release 4.7, so it is not relevant for you. Instead of this, you have to take the CL_BBP_BS_ADAPTER_PO_CRT_ERP10 and method CREATE_DOCUMENT. This is the last step, before the SRM calls the backend system.
    From the alert "local errors" I suppose, that there is an error in the SRM customizing (in case the error message comes from the backend system, you get the message into the "Backend Application error").
    Typical customizing error, when e.g. the number range of the purchase REQUISITION is not correctly customized (in case the prerequisits for a PO are not fulfilled, the system tried to create a purchase requisition). See the note 1173815 regarding this problem.
    Back to your questions:
    The activating of the FBGENDAT was a good idea, but I would give here two hints:
    - I case of production system you can use only the "Mode B".
    - Activate the FBGENDAT only for a short term:
    -- at first set the breakpoint in the method CREATE_DOCUMENT (as above described)
    -- execute the BBP_PD_SC_TRANSFER
    -- you will be stopped at the breakpoint.
    -- Now you can activate the FBGENDAT in the backend
    -- go on with F8 in the debugger in the SRM system
    -- >>> test data will be filled in the backend system (BAPI_PO_CREATE1)
    -- deactivate the FBGENDAT
    You can do this in one min. and the worst what can happen is that you have 2-3 test data in the BAPI_PO_CREATE1 additionally to the erronous SC.
    Question 1) Can this error message be returned by checks in SRM before the BAPI is called in ECC? If so, where do I place a breakpoint to find the error determined by the checks in SRM?
    - Maybe... Places for setting breakpoints
    -- FM "BBP_PD_MSG_ADD"
    -- System command "RAISE"
    -- FM "META_BAPI_DISPATCH" (typical problem, see above, and also the note 1173815)
    Question 2) If the system is getting as far as calling the BAPI in ECC, is it possible to find the error message passed back from ECC by this approach, given that the actual transfer is carried out by the spooler?
    - Yes, you can find the message in the:
    -- Test data of the BAPI_PO_CREATE1, if you have activated the FBGENDAT
    -- In the method CREATE_DOCUMENT if you "comes back" from the RFC call from the backend
    Question 3) If this approach is valid, in which method/function module do I need to place a breakpoint, at which statement is the error message passed back to SRM from ECC?
    - see above, CL_BBP_BS_ADAPTER_PO_CRT_ERP10 method CREATE_DOCUMENT
    Kind regards,
    Peter

  • How to Debug Upload Function (ZCL_RSPLF_FILE_UPLOAD)

    Hello,
    We have the standard Upload function customized to call a function module which eventually does some calculations. I need to modify the function module with extra logic. I cant test the FM directly as it doesn't have Test Frame.
    Am stuck at how to debug the Upload function. Is it possible through program RSPLS_PLSEQ_EXECUTE but then how do I create the variant. Cant create it through Modeler.
    Please suggest.
    Thanks and regards
    Gaurav

    Hi Gaurav,
    As per my understanding you are trying to debug the custom planning function created using SE24.Go to this transaction enter the function name and place the externa break point as suggested in interface you want to debug .
    OR go to rsplf1 - specify function and place external break point.
    You can get it triggered two ways.
    If you already have GPS- Planning sequence built ,directly execute it .It will take you in debug mode.
    You can also create new one if required for testing.
    or
    If you are using any layout to load data ,you can also trigger it from there.
    It will take you to debug mode only after you place external breakpoint.
    Do not put break point rgt after intialization....

  • Hi all    how to debug

    hi
    how to debug the progrom which is running in the background.
    could anybody explain this with steps.
    thanx
    rocky

    Hi Rocky,
    You can debug batch jobs by going to 'SM37', type in 'JDBG' in the
    command line ( no '/' ), put the cursor on the job and press enter - will
    take you to the job in debug mode.
    You can do this only after the job has finished execution. This will simulate the exact background scenario with the same selection screen values as used in the job also sy-batch will set to 'X'.
    So type in the transaction code 'JDBG' and place your cursor on the job after It has finished. It will take you to a SAP program in debug mode. Step through this program which is about 10 lines, after this your program will be executed in the debug mode.
    Steps
    1. Create variant called BACKGROUND for program to be debugged.
    2. Execute ZDEBUGBG (pgm code below) in background for immediate processing.
    3. Execute transaction SM50.
    4. Select process that runs ZDEBUGBG.
    5. Goto 'Program/Session' 'Program' 'Debugging'.
    A se80 debug session will open.
    6. Change variable W_EXIT to 'E'.
    7. Step thru (F6) until ZWBTEST comes up.
    1. Go to Transaction SM66 and find your work porocess.
    Select the line work process is on and click on the Debugging button.
    If this is a custom program, you can put a wait statement in the code to buy yourself sometime.
    2. Go to Transaction SM50. From the tool bar "Program/session"->Program->Debugging.
    goto SM37 and from Program menu(not sure.. try other menu's)
    -->Catchjob . it will goto the active job in debugging mode.
    best regards,
    Thangesh

  • Debugging a Custom IFIlter

    Has anyone had any success deploying a custom developed IFilter in SP2013?
    Essentially I've created an IFilter that reads a specifically formatted text file (with the extension LAS) and extracts crawled properties based on the content.
    I've tested the filter through IFilter View and I see the properties being crawled, both from IPersistFile and IPersistStream interface.
    However, SP2013 doesn't appear to be using the IFilter at all. It does crawl the .LAS files successfully, but appears to be crawling them as text, as I can search and find files by their contents within SP2103 but none of my custom crawled properties get
    created.
    I've followed the instructions in the article :
    How to Build an IFilter for SharePoint 2010 Search and Windows Search Using C++, ATL, and MFC 
    followed by
    HOW TO: Implement a custom IFilter in SharePoint 2013
    but still no joy.
    I'm pretty sure when it comes to SP2013 crawl my DLL is never being called. I've set up the registry on the crawl server as per the notes in the above links too. In doing so I gave the .las a new Content Type application/lasfile and used that in the New-SPEnterpriseSearchFileFormat
    command. I also added the mime type in to IIS just in case it had anything to do with that.
    Any thoughts on my next step for debugging would be great.
    Thanks,
    Ross

    Hi Ross,
    I am trying to involve someone familiar with this topic to further look at this issue.
    Regards,
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Rebecca Tu
    TechNet Community Support

Maybe you are looking for

  • Finding songs in your iPod

    In my library I have only one song checked to go onto my iPod nano by a certain artist, but when I go to the 'Artist' option in my iPod, that artist doesn't show up. Why doesn't it show up if I have only one song from her? Is there any way to change

  • Cumulative vs. ACWP, BSWS, BCWP cost curves in reports

    Three questions: 1. In Project 2013, I want to generate a cost curve report showing cumulative baseline cost, cumulative actual cost, and cumulative planned cost curves (I used to do this in Project 2010, with cash flow cost report data that I would

  • Charges should be invoiced in AR from SR without OM integration

    Dear all, Client does not have Order Mangement ...My requirement is tat ,when the SR is created with charges , i should be able to calculate the invoice without the interfacing with Order Mangement (OM)..as the client has not got license for OM... Ca

  • Is there a way to have Adobe Acrobat reader default to a higher version?

    Hi, We've pin-pointed the cause of an issue where in MS Excel we hyperlink a PDF file & our user is using Adobe Acrobat v7 & when the user clicks on it. The PDF pops up & just disappears. I've located the fix for it on MS Discussion Forums below: If

  • Integration with Apple's iPhoto

    I create a lot of personal items with InDesign, as well as commercial ones. With my personal ones especially, I would really like a way to select photos that are stored in Apple's iPhoto, something very similar to Apple's Media Browser found in Apple