Update configuration for remote python debugger to latest format (#34527)

This commit is contained in:
deosrc 2024-09-10 07:21:51 +01:00 committed by GitHub
parent 5fea167c94
commit 3359fc5784
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -134,10 +134,12 @@ your Visual Studio Code project to connect to the debugger.
{ {
// Example of attaching to local debug server // Example of attaching to local debug server
"name": "Python: Attach Local", "name": "Python: Attach Local",
"type": "python", "type": "debugpy",
"request": "attach", "request": "attach",
"connect": {
"port": 5678, "port": 5678,
"host": "localhost", "host": "localhost",
},
"pathMappings": [ "pathMappings": [
{ {
"localRoot": "${workspaceFolder}", "localRoot": "${workspaceFolder}",
@ -148,10 +150,12 @@ your Visual Studio Code project to connect to the debugger.
{ {
// Example of attaching to my production server // Example of attaching to my production server
"name": "Python: Attach Remote", "name": "Python: Attach Remote",
"type": "python", "type": "debugpy",
"request": "attach", "request": "attach",
"connect": {
"port": 5678, "port": 5678,
"host": "homeassistant.local", "host": "homeassistant.local",
},
"pathMappings": [ "pathMappings": [
{ {
"localRoot": "${workspaceFolder}", "localRoot": "${workspaceFolder}",