Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Table of Contents

Search

  1. Preface
  2. Introduction to Informatica Connector Toolkit
  3. Before you begin
  4. Develop a connector for Cloud Data Integration
  5. Import a connector
  6. Debug the connector code
  7. Connection attributes
  8. Type system
  9. Connector metadata
  10. Partitioning capability
  11. Manual changes to Informatica Connector Toolkit source code
  12. Runtime behavior
  13. Connector example: MySQL_Cloud
  14. Version control integration
  15. Appendix A: Metadata models
  16. Appendix B: ASO model
  17. Appendix C: Connector project migration
  18. Appendix D: Frequently used generic APIs in Informatica Connector Toolkit
  19. Appendix E: Frequently asked questions

Cloud Data Integration Connector Toolkit Developer Guide

Cloud Data Integration Connector Toolkit Developer Guide

Debug the connector code

Debug the connector code

After you develop a connector, you can debug the connector code to identify and resolve issues such as connection failures, authentication errors, or logic flaws in the connector’s implementation.
You can attach a debugger to the connector code to pause execution at key points, inspect variable values, and trace the code flow in real time, significantly enhancing the accuracy and efficiency of identifying issues.
To debug the connector code, perform the following steps:
  1. Click
    Test Connection
    .
    The Connector Progress panel shows the Test Connection option under Phase 2.
  2. In
    Virtual Machine Parameters
    field, set
    suspend=y
    and
    address=8000
    to suspend the connection process before you attach the debugger.
    The Test Settings dialog box shows the Virtual Machine Parameters field where you can specify the JVM parameters.
  3. Open the relevant Java source file in the Eclipse IDE. For example,
    <connectorName>Connection.java
    .
  4. Right-click and select
    Toggle Breakpoint
    to add breakpoints at the specific lines of code where you want to pause execution and inspect variables, such as the
    openConnection
    method.
    The Java editor shows the context menu with the Toggle Breakpoint
							option.
  5. Click
    Run
    Debug Configurations
    .
    The menu bar shows the Run menu with the Debug Configurations option.
  6. Double-click
    Remote Java Application
    and select your connector project.
    Th Debug Configurations dialog box shows the Remote Java Application option to debug your connector code.
  7. In the
    Port
    field, enter
    8000
    . The port number must be the same that you specified in the address parameter in Step 2. Default is 8000.
  8. On the
    Source
    tab, click
    Add
    .
  9. Select
    Java Project
    , and then click
    OK
    .
    The Add Source dialog box shows the Java Project option that enables the debugger to locate and display the source code.
  10. Select the Java projects that contain your connector's source code to ensure the debugger can find the source files, and then click
    OK
    .
    The Project Selection dialog box shows the projects that contain your connector's source code.
  11. Click
    Apply
    to save the configuration.
    The source tab shows the selected projects for the connector's source code, the apply option to save the configuration, and the debug option to start the remote debugging.
  12. Click
    Debug
    to attach the debugger and start the remote debugging session.
    The
    Confirm Perspective Switch
    dialog box appears.
    The Confirm Perspective Switch dialog box shows a message explaining the Debug perspective and asks if you want to switch to the debug perspective.
  13. Click
    Switch
    to switch to debug perspective.
    You can use the debug perspective to control program execution, inspect variables, monitor threads, and manage breakpoints.

0 COMMENTS

We’d like to hear from you!