Troubleshooting
Problem
Z Open Debug cannot connect to Debug Profile Service when you try to activate the created profile if you use VS Code 1.47 or later with Debug Profile Service 14.2.3 or earlier.
Symptom
When you try to activate a created profile in the Z Open Debug Profile view, Z Open Debug cannot connect to Debug Profile Service to activate the profile and the following message is displayed:
Cause
VS Code 1.47 introduced an extra security layer, which prevents Cross Origin Resource Sharing (CORS).
Environment
Visual Studio Code 1.47 or later.
Debug Profile Service 14.2.3 or earlier.
Resolving The Problem
The CORS error can be resolved by using any of the following methods:
A. VS Code 1.47 or earlier
1. Go to https://code.visualstudio.com/updates/ and download VS Code 1.47 or earlier.
2. Disable automatic update in Settings of VS Code.
B. Set the origin of the Debug Profile Service API to match VS Code
A. VS Code 1.47 or earlier
1. Go to https://code.visualstudio.com/updates/ and download VS Code 1.47 or earlier.
2. Disable automatic update in Settings of VS Code.
B. Set the origin of the Debug Profile Service API to match VS Code
1. This filter is an implementation of CORS (Cross-Origin Resource Sharing), which is a mechanism that enables cross-origin requests.
2. Specify the entry in the /usr/lpp/IBM/debug/eqaProfile/conf/server.xml as follows:
<filter-mapping>
<filter-name>CorsFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Note: This configuration enables the filter but does not comply with the cross-origin policy.
As a minimum, you need to add a cors.allowed.origins initialization parameter to enable cross-origin requests.
Depending on your requirements, you might need to provide additional configuration parameters.
C. Use of a version of Debug Profile Service later than 14.2.3
Document Location
Worldwide
[{"Line of Business":{"code":"LOB35","label":"Mainframe SW"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSSQT8","label":"IBM Wazi for Red Hat CodeReady Workspaces"},"ARM Category":[{"code":"a8m0z00000009oWAAQ","label":"z\/OS Debugger"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]
Was this topic helpful?
Document Information
Modified date:
26 October 2021
UID
ibm16336419