Error debug from VS
Hi community.
Yes, I know that there is other question "VS Code - debugging doesn't work" that is the same issue, but my IRIS instance is not using IIS.
Some times ago, I could debug without problems, but after some updates of Visual Studio, I get the following error
Failed to start the debug session. Check that the Intersystems server's web server supports WebSockets
I've activated the WebSocket protocol in the server (Windows Server 2019) but it still doesn't work.
The IRIS instance is not using IIS, I think it is using the Apache by default.
Do I need to do anything in special?
The launch.json file for debug is the default.
{
"version": "0.2.0",
"configurations": [
{
"type": "objectscript",
"request": "attach",
"name": "ObjectScript Attach",
"processId": "${command:PickProcess}",
"system": true
}
]
}
JSONJSON
Thanks in advance
Update info:
I've had a look the "Web Gateway HTTP Trace Facility" and I've found this message. I hope it would be a clue.
Show Response GET /api/atelier/v5/%SYS/debug HTTP/1.1 Cookie: CSPSESSIONID-SP-52773-UP-api-atelier-=002000000000tZdEXBhA4h0nTQAGNi1ne5AAsow8WHOHVPmznK; path=/api/atelier/; httpOnly; sameSite=strict;; CSPWSERVERID=H22QDlOU; path=/; httpOnly; Sec-Websocket-Version: 13 Sec-Websocket-Key: QaWwGTFB8vWFHSpWTScJig== Connection: Upgrade Upgrade: websocket Sec-Websocket-Extensions: permessage-deflate; client_max_window_bits Host: xx.xxx.xx.xx:52773 Show Request HTTP/1.1 404 Not Found Content-type: text/html Connection: close ERROR #5916: Solicitud de CSP ilegal
This exact IRIS version has a problem
https://github.com/intersystems-community/vscode-objectscript/issues/1149
Thanks John,
According to that solution, I need to ask to WRC an a ad-hoc fix for my IRIS instance, isn't it?
Yes, open a WRC problem and mention this GitHub.