Troubleshooting using log files

You can configure logging for IBM Z Open Editor to produce detailed logs that help troubleshoot problems by providing more information and traces of the editor’s activities. Enable logging through a user preference setting called zopeneditor.logger. In the VS Code Preferences editor, you can select from the available log levels: DEBUG, INFO (default), WARN, ERROR, and OFF.

Some log files are created by VS Code and require a separate setting to enable them. For example, VS Code can generate a trace of all language server client-to-server interactions, as documented in the VS Code Language Server Extension Guideopen in new window. To enable this log, specify the user setting "<languageId>.trace.server": "verbose", such as"cobol.trace.server": "verbose". This log can help support teams analyze specific issues related to program processing during editing.

Zowe Explorer also has its own logging mechanism, which you can configure to troubleshoot issues accessing z/OS resources. See the Zowe documentation Troubleshooting Zowe Exploreropen in new window for details.

After logging is enabled, the output of most logs can be found in two locations:

  • In the VS Code Output panel, by selecting the name of the log file such as "IBM Z Open Editor", "IBM User Build", "IBM Z Open Editor MCP", "Zowe Explorer" and others from the drop-down list.
  • A log file written to your disk, which can be shared with technical support (if entitled) or attached to an issue filed against the public issues repository on GitHubopen in new window. The first line in the VS Code Output panel shows the absolute path to the file on your system.

Additional details for each log are provided in the table below.

Export all relevant log files for technical support

You can use the Z Open Editor command "Export Support Files" to retrieve all relevant log files relevant to Z Open Editor operations into a convenient ZIP file that can be shared with IBM Technical Support.

  1. In the Command Palette, select > Z Open Editor: Export Support Files.
  2. A pop-up dialog prompts you to choose the directory where the ZIP file should be saved.
  3. After a successful export, a notification confirms the path to the exported ZIP file.

Review the log files

Use the log files contained in the exported ZIP file to troubleshoot issues using the information provided.

For example, when investigating why a specific include file was not found by the editor, the log file named "zopeneditor-<timestamp>.log" generated at the DEBUG log level can provide a trace of the editor’s activities. This includes locating ZAPP files in your workspaces, identifying the property groups used, and listing the directories the editor searches. You can review the log to see where the initial request for a specific file was made, the steps taken to process the request, and any errors that were reported. Because requests for all include files in a program are processed in parallel, each request is assigned a unique request ID. This ID helps distinguish concurrent events in the log.

Locate log files manually

If you prefer to locate the log files yourself either those exported using the procedure above or those generated in real time, you can refer to the list of locations below. The table also includes the names used to identify each log in the VS Code Output view.

Log typeVS Code Output View NameLocation
The main log for Z Open Editor activitiesIBM Z Open EditorThe location is specified in the Output panel on the second line.
** The log file is available at...
  • Windows example: C:\Users\username\AppData\Roaming\Code\logs\20200921T153526\exthost1\IBM.zopeneditor\zopeneditor-1-1-0.log
  • Mac example: /Users/username/Library/Application Support/Code/logs/20200928T093225/exthost5/IBM.zopeneditor/zopeneditor-1-1-0.log
Language Server logNot in OutputIn the main log, find the line that begins with the following sentence to locate the LSP logs:
** ZLanguageServer: Will start a language server with command...

Then find the -data, tag, which precedes the LSP log file location.
  • Windows example: C:\Users\username\AppData\Local\Temp\_ws_<id>\.metadata/.log
  • Mac example: /var/folders/sr/qztfyx3d39z50jgl50ls_b0r0000gn/T/_ws_<id>/.metadata/.log
Language Client log<Language> Language ServerAvailable only after enabling the VS Code setting described in the preceding section. The log appears in a dynamically created folder such as in these examples:
  • Windows example: C:\Users\username\AppData\Roaming\Code\logs\20251020T172305\window14\output_logging_20251023T155230\7-COBOL Language Server.log
  • Mac example: /Users/phaumer/Library/Application Support/Code/logs/20251020T172305/window14/exthost/output_logging_20251023T155230/7-COBOL Language Server.log
Zowe Explorer logZowe Explorer
  • Windows example: C:\Users\username\.vscode\extensions\zowe.vscode-extension-for-zowe-1.9.0\logs
  • Mac example: /Users/username/.vscode/extensions/zowe.vscode-extension-for-zowe-1.9.0/logs
RSE API plug-in for Zowe CLI (RSE CLI plug-in) logsNot in OutputLog files are located in the locations:
  • ~\.zowe\zowe\logs\
  • ~\.zowe\imperative\logs\
VS Code Extension Host log showing general editor eventsExtension HostLog files are located in:
  • Windows example: C:\Users\username\AppData\Roaming\Code\logs\20200921T153526\window1\exthost\exthost.log
  • Mac example: /Users/username/Library/Application Support/Code/logs/20200921T153526/window1/exthost/exthost.log
User Build outputIBM User BuildLog files are located in:
  • Windows example: C:\Users\username\AppData\Roaming\Code\logs\20251013T153526\window1\exthost\IBM.zopeneditor\userbuild-20251013-140632.log
  • Mac example: /Users/username/Library/Application Support/Code/logs/20200921T153526/window1/exthost/IBM.zopeneditor/userbuild-20251013-140632.log
Z Open Editor MCP events and tracesZ Open Editor MCPLog files are located in:
  • Windows example: C:\Users\username\AppData\Roaming\Code\logs\20251013T153526\window1\exthost\IBM.zopeneditor\zopeneditor-mcp-20251013-140632.log
  • Mac example: /Users/username/Library/Application Support/Code/logs/20200921T153526/window1/exthost/IBM.zopeneditor/zopeneditor-mcp-20251013-140632.log
ZCodeScan events and tracesIBM ZCodeScanLog files are located in:
  • Windows example: C:\Users\username\AppData\Roaming\Code\logs\20251013T153526\window1\exthost\IBM.zopeneditor\zcodescan-20251013-140632.log
  • Mac example: /Users/username/Library/Application Support/Code/logs/20200921T153526/window1/exthost/IBM.zopeneditor/zcodescan-20251013-140632.log

Finding versions of all VS Code extensions installed

Enabling logging also provides information that technical support will be asking for. To retrieve it:

  1. Ensure that your IBM Z Open Editor logger preference is set to DEBUG.

  2. In the Output console window, select IBM Z Open Editor from the drop-down list. The following information will be listed:

    • IBM Z Open Editor version
    • Editor platform and version
    • Editor Installation information
    • Java SDK configuration location and memory allocation
    • Key user settings
    • Zowe Explorer VS Code Extension version
    • Other VS Code Extensions visible

Finding Zowe CLI version and RSE CLI plug-in version

In the VS Code Terminal window, enter the applicable commands:

  • Command for Zowe CLI: zowe --version
  • Command for RSE CLI plug-in: zowe plugins list

Log levels

IBM Z Open Editor uses the log levels described in the following chart. These levels are listed in order of most to least detailed (with the exception of OFF, which turns off all logging). For example, the DEBUG setting will output detailed debug information as well as messages from the other levels below it: INFO, WARN, and ERROR. In contrast, the ERROR setting will only log important errors.

Log levelDescription
DebugIdentifies detailed informational events that are useful for troubleshooting the editor's behavior.
InfoProvides informative messages that are of general interest to the end user for observing activities performed by the editor.
WarnIndicates potentially problematic situations that could cause unexpected behaviors or errors.
ErrorDesignates error events that interrupted the editor in executing an operation as intended.
OffNothing is logged.
Last Updated:
Contributors: Greg Lambert, Peter Haumer, BETTY CHEN, Lauren Li, Lauren Li, Chun Hong Zheng, Esther M, Kimberlee Maselli, Min Huang, Peter Haumer, Prasang-A-Prajapati, shikunli