in src/debugger.js [50:90]
constructor(argv) {
this.startTime = Date.now();
log.debug("starting debugger");
// see if our process is debugged, which might not be desired
if (inspector.url()) {
log.warn(`
+------------------------------------------------------------------------------------------+
| WARNING: wskdebug itself is debugged and likely NOT the action |
| |
| This could be an issue with the debug setup. Notably, VS Code changed their debugger |
| implementation in June/July 2020 requiring changes to launch.json. For more see: |
| |
| https://github.com/apache/openwhisk-wskdebug/issues/74 |
| |
+------------------------------------------------------------------------------------------+
`);
}
this.argv = argv;
this.actionName = argv.action;
this.wskProps = wskprops.get();
if (Object.keys(this.wskProps).length === 0) {
log.error(`Error: Missing openwhisk credentials. Found no ~/.wskprops or .env file or WSK_* environment variable.`);
process.exit(1);
}
if (argv.ignoreCerts) {
this.wskProps.ignore_certs = true;
}
try {
this.wsk = openwhisk(this.wskProps);
} catch (err) {
log.error(`Error: Could not setup openwhisk client: ${err.message}`);
process.exit(1);
}
const h = log.highlightColor;
log.spinner("Debugging " + h(`/_/${this.actionName}`) + " on " + h(this.wskProps.apihost));
}