You could use the browser based debugger XQDebug: http://code.google.com/p/xqdebug/
XQDebug allows you to debug websites and webservices built on MarkLogic. If you want to debug directly from an editor user Oxygen or from qconsole use XQDT. From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: Friday, September 14, 2012 11:58 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] ctx and xdmp declaration There is also XQDT, which runs in Eclipse.. Kind regards, Geert Van: general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com> [mailto:general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>] Namens Gary Larsen Verzonden: vrijdag 14 september 2012 19:30 Aan: 'MarkLogic Developer Discussion' Onderwerp: Re: [MarkLogic Dev General] ctx and xdmp declaration Thanks for everyone's help. Still stuck with the Oxygen debugger but need to move on and try to resolve later. Are there any other XQuery debuggers that people are using with ML? Thanks, Gary From: general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com> [mailto:general-boun...@developer.marklogic.com]<mailto:[mailto:general-boun...@developer.marklogic.com]> On Behalf Of Tim Meagher Sent: Friday, September 14, 2012 11:16 AM To: 'MarkLogic Developer Discussion' Subject: Re: [MarkLogic Dev General] ctx and xdmp declaration Hi Gary, Have you set up a MarkLogic DataSource in oXygen using the xcc .jar file for your particular version of MarkLogic and run your query in the context of a connection to that datasource? Tim Meagher From: general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com> [mailto:general-boun...@developer.marklogic.com]<mailto:[mailto:general-boun...@developer.marklogic.com]> On Behalf Of Gary Larsen Sent: Friday, September 14, 2012 9:09 AM To: 'MarkLogic Developer Discussion' Subject: Re: [MarkLogic Dev General] ctx and xdmp declaration Thanks Ryan. That worked but now I've run into a function signature issue. In the xdmp:unquote() call below I get this syntax error in Oxygen's debugger: > Cannot find a matching 2-argument function named > {http://marklogic.com/xdmp}unquote()<http://marklogic.com/xdmp%7dunquote()> declare function console-data:param($name, $val) { let $p := xdmp:unquote($params,'http://developer.envisn.com/xmlns/envisn/netvisn/p')/p:params/*[local-name()=$name]/p:val return if(fn:count($p) gt 1 or $p ne '') then $p else $val }; The query runs when the xquery version is "1.0.-ml" but the debugger requires "1.0". Is there a solution or alternative anyone can suggest? Thanks, Gary From: general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com> [mailto:general-boun...@developer.marklogic.com]<mailto:[mailto:general-boun...@developer.marklogic.com]> On Behalf Of Ryan Dew Sent: Thursday, September 13, 2012 5:23 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] ctx and xdmp declaration declare namespace xdmp = "http://marklogic.com/xdmp"; declare namespace cts = "http://marklogic.com/cts"; The namespaces could be found with running the following in QConsole: xquery version "1.0-ml"; fn:namespace-uri-from-QName(xs:QName('xdmp:test')), fn:namespace-uri-from-QName(xs:QName('cts:test')) -Ryan Dew On Thu, Sep 13, 2012 at 3:08 PM, Gary Larsen <gary.lar...@envisn.com<mailto:gary.lar...@envisn.com>> wrote: Hi, Trying to debug a query in Oxygen but have syntax errors: XQuery syntax error in #...ns/envisn/netvisn/p')/p:params#: Prefix xdmp has not been declared XQuery syntax error in #... cts:element-value-query#: Prefix cts has not been declared What are the proper namespace declarations for these prefixes? Thanks, Gary _______________________________________________ General mailing list General@developer.marklogic.com<mailto:General@developer.marklogic.com> http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general