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 portou 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.
[ 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 doNode.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
: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:
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.