overstory / marklogic-intellij-plugin

Plugin to support XQuery + MarkLogic debugging in Intellij Idea
Apache License 2.0
12 stars 2 forks source link

Refactor Run Configuration for MarkLogic to select run mode #25

Open ronhitchens opened 7 years ago

ronhitchens commented 7 years ago

Need to add UI elements to specify how the debugged request should be run. There are, at this point, four scenarios that could be selected:

  1. AdHoc - A single XQuery main module file in IntelliJ should be submitted via "dbg:eval" and run with no appserver dependency. This will not allow for debugging through libraries unless the appserver is coincidentally configured so that the appserver root matches up. But it will be very useful for running test code snippets.

  2. Module Invoke - A main module file in IntelliJ is invoked via dbg:invoke, in the context of the configured appserver. UI config must be put in place to map IntelliJ's notion of the root to the root configured in the MarkLogic appserver.

  3. Grab Appserver - This will be a mode where the IntelliJ can grab the configured run appserver in order to debug requests that start there. This will require a secondary port to debug the grabbed requests. It will also be the only mode where output of the request can be captured, since scenarios 1 and 2 run on the Task Server.

  4. Grab Running Request - This will require path mapping as for scenario 3, but also some new UI (and connector code) to list and select running requests. This scenario may be wind up being out of scope for the first release.

ronhitchens commented 7 years ago

This is done. Radio buttons and supporting fields for the four scenarios added to the Run Configuration when the Data Source is MarkLogic.

ronhitchens commented 6 years ago

The first three of these modes are in place in version 1.0.0. The fourth mode, grab running request, is still to be implemented. This Issue should be closed and a new one created for the implementation of Grab Running Request.

ronhitchens commented 6 years ago

Create new Issue #50 for Scenario 4 above. The other three modes are complete.