Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Debugging Apache OpenWhisk Functions With VS Code [Video]

DZone's Guide to

Debugging Apache OpenWhisk Functions With VS Code [Video]

See how you can debug single-file, zipped multi-file, as well as Node.js Apache OpenWhisk functions in Docker containers using VS Code.

· Cloud Zone ·
Free Resource

See why enterprise app developers love Cloud Foundry. Download the 2018 User Survey for a snapshot of Cloud Foundry users’ deployments and productivity.

As a developer, I develop and debug code locally as much as possible. I’ve written some sample code that shows how to debug Node.js OpenWhisk functions via Visual Studio Code.

The sample code explains how to debug single-file functions, zipped multi-file functions as well as Node.js functions in Docker containers.

The following screenshot shows how functions that run in Docker can be debugged from Visual Studio Code. In order to do this, a volume is used to share the files between the IDE and the container and VS Code attaches a remote debugger to the Docker container. The functions can be changed in the IDE without having to restart the container. nodemon restarts the Node application in the container automatically when files change.

debugging-docker-3

Get the code from GitHub.

Watch the video to see how to debug OpenWhisk functions with Visual Studio Code.


Cloud Foundry saves app developers $100K and 10 weeks on average per development cycle. Download the 2018 User Survey for a snapshot of Cloud Foundry users’ deployments and productivity. Find out what people love about the industry standard cloud application platform.

Topics:
cloud ,vs code ,debugging ,apache openwhisk functions ,tutorial ,serverless

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}