Jump to content
View in the app

A better way to browse. Learn more.

LDG - Tech | Game Services Solutions

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Posted

[ PT-BR ]

Olá caro membro, visitante através de este venho explicar como resolver o problema ao tentar utilizar o debugger do vscode e ou cursor, para debugar problemas em seus código (Node.Js)

O erro indica que a propriedade PROTOCOL não é permitida na configuração atual. Para configurações de debug do Node.js com "request": "attach", a propriedade protocol foi substituída por port ou address então para efetuar a correção do problema mencionado pelo warning do vscode ou do cursor basta ajustar as configurações de acordo com a compatibilidade do sistema em suas novas versões.

Arquivo com correção aplicada:

{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [

    {
      "type": "node",
      "request": "attach",
      "port": 9229,
      "restart": true,
      "name": "Debug",
      "skipFiles": [
        "<node_internals>/**"
      ],
      "outFiles": [
        "${workspaceFolder}/**/*.js"
      ]
    }
  ]
}
Explicação:
  • A propriedade protocol não é mais suportada nas versões mais recentes do VS Code para configurações de debug do Node.js

  • Para configurações "request": "attach", você deve especificar a porta onde o processo Node.js está rodando com debug habilitado

  • A porta 9229 é a porta padrão do Node.js para debug

[ EN-US ]

Hello dear visitor, I'm here to explain how to resolve the issue when trying to use the VS Code debugger and/or cursor to debug issues in your Node.Js code.

The error indicates that the PROTOCOL property is not allowed in the current configuration. For Node.Js debug configurations with "request": "attach," the protocol property has been replaced by port or address. To fix the issue mentioned in the VS Code or cursor warning, simply adjust the settings according to the system's compatibility with the newer versions.

File with the fix applied:

{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [

    {
      "type": "node",
      "request": "attach",
      "port": 9229,
      "restart": true,
      "name": "Debug",
      "skipFiles": [
        "<node_internals>/**"
      ],
      "outFiles": [
        "${workspaceFolder}/**/*.js"
      ]
    }
  ]
}
Explanation:
  • The protocol property is no longer supported in the latest versions of VS Code for Node.js debug configurations.

  • For "request": "attach" configurations, you must specify the port where the Node.js process is running with debugging enabled.

  • Port 9229 is the default Node.js debugging port.

Featured Replies

No posts to show

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.