

If you do not yet have a launch configuration, the following is displayed.Change to the Run icon in the Activity Bar.In Visual Studio Code, add the new folder (File -> Add Folder to Workspace…).Create a folder on your desktop called MarkLogic Tutorial.In the Activity Bar, click the Explorer icon in Visual Studio Code.Visual Studio Code documentation has information about debugging and launch configurations. Along with the new folder, we’ll also create a launch configuration file for Visual Studio Code. We’ll create a folder to use for our tutorial. Close the Settings window by clicking the x.We’ll see an example shortly! See the Visual Studio Code documentation to learn more about User versus Workspace settings. These settings can also be overridden by settings within each JavaScript request. Also, set Documents Db to “Documents” and Modules Db to “Modules”. Set the MarkLogic username and password to your local administrator account.For the purposes of this tutorial, you’ll only need the MarkLogic administrator username and password for your MarkLogic instance running on your computer. In the Settings for the MarkLogic developer tools extension, note the following User and Workspace.Click the “gear” icon, then select the Extension Settings menu item.When the MarkLogic developer tools extension has installed, the Install button will change to a “gear” icon to configure the extension.In the “Search Extensions in Marketplace” edit box, type marklogic then press ENTER.In the Activity Bar on the left side of the window, click on the icon for Extensions:.Start the Visual Studio Code application.Once Visual Studio Code is installed on your computer, we’ll add the MarkLogic developer tools extension and configure it. Now that you’ve got your local environment setup, let’s begin the tutorial. Configure VS Code settings to associate MarkLogic *.sjs files as JavaScript.You’ll need to get it installed and initialized. MarkLogic awesomeness: MarkLogic Server 10.0-4 (or later).To do so you will need to setup a few (free) things on your machine: This tutorial is designed so you can follow along and get hands-on with debugging MarkLogic modules written in JavaScript. Let’s learn about using Visual Studio Code with the MarkLogic Visual Studio Code Extension to debug a JavaScript Module in MarkLogic.

This project is available in the Visual Studio Code Marketplace as the MarkLogic developer tools extension. A community-supported GitHub project offers a Visual Studio Debugger extension for Visual Studio Code. The Visual Studio Code (VS Code) editor offers a plug-in architecture to extend the functionality. MarkLogic version 10.0-4 and higher supports attaching debuggers to requests. Consulting Services Expert implementation.
