To debug a functionality in a producer module you should follow the steps presented below. Note that when you are debugging a producer module the debugger will not stop in any breakpoints set in the consumer module unless you also start a debug session in the consumer module.
Your consumer module must fulfill the following conditions:
- It must be a consumer of the producer module by referencing it.
- The reference to the producer module is up-to-date.
- You have permissions to publish the consumer module.
Debug the Producer Module
To debug the functionality being exposed by the producer module, do the following:
Open the producer module and set the entry module for debugging to be the consumer module. You can set the entry module in the Debugger pane or in the Debugger menu, by choosing the "Select Entry Module..." option.
Note: If the desired consumer is not in the list, check the pre-requisites listed above.
Place breakpoints where you want the execution to stop. The execution will only stop on breakpoints of the producer module.
Start the debugger in the producer module. If the producer module is part of a mobile app, the consumer module will automatically be opened; if it's part of a web application, you can open the consumer module in a browser.
Interact with the application to execute the functionality that calls the producer logic where the breakpoints are set.