Skip to content

[nodejs] pass through DEBUG, NODE_DEBUG environment variables #43

@alexkli

Description

@alexkli

In nodejs certain environment variables are standard to configure debug logging:

  • DEBUG for the debug npm module
  • WSK_NODE_DEBUG in place of the standard NODE_DEBUG for built-in nodejs APIs - the separate name is necessary to avoid having it affect wskdebug itself

While these can be manually set using wskdebug --docker-args "-e DEBUG=x" already, this is cumbersome. It should happen automatically in case the action is nodejs, so that this command will set the DEBUG var inside the action container:

DEBUG=mymodule wskdebug myaction

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions