IBM Verify

IBM Verify

Join this online user group to communicate across Security product users and IBM experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Debugging custom java classes in TDI

    Posted Tue November 25, 2025 03:30 AM

    Hi everyone, I have a TDI question (maybe a bit trivial, I hope).

    I have a Java class that I developed, which is called by a TDI assembly. I would like to debug this class when it is invoked by TDI itself.

    Now, the main issue is this: I want the TDI server (the one launched from the Configuration Editor) to run with the correct JVM parameters so that remote debugging is enabled. Assuming that the parameters I would pass to the JVM are correct, the question is: where should these parameters be set?

    I tried looking into the solution.properties file and searching online, but with little success.

    The idea is to launch the server in debug mode and perform remote debugging from Eclipse.

    Thanks in advance for your time and your guidance.



    ------------------------------
    Andrea Gatto
    ------------------------------


  • 2.  RE: Debugging custom java classes in TDI

    Posted Tue November 25, 2025 03:37 AM

    Wauvv ! - I have not expected anybody going down this route - I am not alone anymore ! :-) 

    You need to specify it in the ibmdisrv file - in my windows 7.2 system I have done this successfully with Eclipse using this line to start the SDI server : 

    "%TDI_JAVA_PROGRAM%" -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8888 -classpath "%TDI_HOME_DIR%\IDILoader.jar" %ENV_VARIABLES% com.ibm.di.loader.ServerLauncher %* 

    This is just working very nicely (I really love the Eclipse debugger - I would like to be able to improve the SDI a little bit so that e.g. breakpoints was as easy to manage as in Eclipse - there is so much potential in the SDI debugger for making it even better than it is today...)

    HTH



    ------------------------------
    Franz Wolfhagen
    WW IAM Solution Architect - Certified Consulting IT Specialist
    IBM Expert Labs
    ------------------------------



  • 3.  RE: Debugging custom java classes in TDI

    Posted Tue November 25, 2025 04:14 AM

    Great! I can't wait to try it (as soon as possible).

    I'll let you know of course.

    Thank you!



    ------------------------------
    Andrea Gatto
    ------------------------------



  • 4.  RE: Debugging custom java classes in TDI

    Posted Fri November 28, 2025 10:45 AM

    It works like a charm!

    Thank you!



    ------------------------------
    Andrea Gatto
    ------------------------------



  • 5.  RE: Debugging custom java classes in TDI

    Posted Sat November 29, 2025 04:25 AM

    Thanks for the confirmation !



    ------------------------------
    Franz Wolfhagen
    WW IAM Solution Architect - Certified Consulting IT Specialist
    IBM Expert Labs
    ------------------------------