How to debug jsdoc from openlayers in Visual Studio Code?

This blog post sums up some notes about using the node js debugger for jsdoc when developing a plugin for openlayers jsdoc.

git clone

Open Visual Studio Code and open the folder where you checked out openlayers.

// Use IntelliSense to learn about possible Node.js debug attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit:
"version": "0.2.0",
"configurations": [{
"type": "node",
"request": "launch",
"name": "Launch jsdoc config/jsdoc/api/conf.json",
"program": "${workspaceRoot}/node_modules/.bin/jsdoc",
"args": ["config/jsdoc/api/", "-c", "config/jsdoc/api/conf.json", "--package", "package.json", "-d", "build/hosted/master/apidoc"]

Now you can set breakpoints in your code and Visual Studio will stop.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.