Question
· Feb 7

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
          }
    ]
}

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
Product version: IRIS 2021.1
$ZV: IRIS for Windows (x86-64) 2021.1.3 (Build 389U) Wed Feb 15 2023 14:50:06 EST
Discussion (3)3
Log in or sign up to continue