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.
Watch the video to see how to debug OpenWhisk functions with Visual Studio Code.
If you want to try out OpenWhisk in the cloud, you can get a free account on the IBM Cloud.