-
I am working on #2432 and would very much like to be able to breakpoint debug through the code. However I can't find any docs on this and can't figure it out. Also, wondering how to put logging into a file that doesn't have it yet, and where to see that logging? I tried using the Imperative API logging as explained in the wiki but those docs seem to be very out of date. Also tried using log4js logger from imperative with Any help appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
See https://github.com/zowe/zowe-cli/blob/master/docs/DevelopmentTips.md#debugging-in-vs-code for an example of VS Code debug configuration. You can replace The default location of logs for Zowe CLI is Logger.initLogger(LoggingConfigurer.configureLogger('.', {name: 'app'})); |
Beta Was this translation helpful? Give feedback.
-
Also I am getting this error on the top of all test files in the repo when I open them:
I looked in the |
Beta Was this translation helpful? Give feedback.
-
I am trying to use the JestRunner extension as suggested, but when I click "Run" or "Debug" on a test case, I get the following error:
The extension says it should work OOTB with a valid jest config, but there are some settings that can be changed. As I'm unfamiliar with zowe cli test environment, is there any settings I need to change to get it to work? Cheers |
Beta Was this translation helpful? Give feedback.
See https://github.com/zowe/zowe-cli/blob/master/docs/DevelopmentTips.md#debugging-in-vs-code for an example of VS Code debug configuration. You can replace
args
with any CLI command you want to run.The default location of logs for Zowe CLI is
~/.zowe/logs
. If you want to define a custom logging directory in a test script that calls Zowe SDKs, this should work to initialize a Zowe logger that writes to./logs/app.log
: