Edit online

Using Breakpoints for Debugging Queries that Import Modules with MarkLogic

When debugging queries that imports modules stored in the database, it is recommended to place breakpoints in the modules. When starting a new debugging session, make sure that the modules that you will debug are already opened in the editor. This is necessary so that the breakpoints in all the modules will be considered. Also, make sure that there are no other open modules that are not involved in the current debugging session.

To place breakpoints in the modules, use the following procedure:
  1. In the Data Source Explorer view, open all the modules from the Modules container of the XDBC application server that performs the debugging.
  2. Set breakpoints in the module as needed.
  3. Continue debugging the query.
If you get a warning that the breakpoints failed to initialize, try the following solutions:
  • Check the Breakpoints view and make sure there are no older breakpoints (set on resources that are not part of the current debugging context).
  • Make sure you open the modules from the context of the application server that does the debugging and place breakpoints there.