Develop, run, and debug code for MarkLogic in the popular VS Code IDE

Visual Studio Code is a free, cross-platform code editor and development tool from Microsoft. The free, open-source MarkLogic Extension for VS Code integrates MarkLogic in the cloud or on your laptop into this modern development environment.


  • Syntax highlighting and IntelliSense for MarkLogic Server-Side JavaScript and XQuery APIs
    Syntax highlighting
  • Interactive debugging of JavaScript running in Data Hub Service or MarkLogic, including attaching to in-flight requests and inspecting live variables (XQuery coming soon.)
    Interactive debugging
  • Real-time query evaluation of JavaScript or XQuery against a live Data Hub Service or MarkLogic instance

JavaScript debugging requires version 2.0.0+ of the MarkLogic extension and MarkLogic 10.0-4+.


Learn More

Visual Studio Code

Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. Download VS Code here.

Visual Studio Marketplace

This tool is available on the Visual Studio Marketplace, where you can find thousands of extensions for the Visual Studio family of products.

Get Started

This written tutorial walks you through how to set up and use the Visual Studio Code extension to debug your code running in your Data Hub Service or MarkLogic.

This website uses cookies.

By continuing to use this website you are giving consent to cookies being used in accordance with the MarkLogic Privacy Statement.