Skip to content

Commit 4edb9b6

Browse files
markbhasawutfacebook-github-bot
authored andcommitted
Fix the configurationAttributes of edb Attach to Erlang Node option (#98)
Summary: The configuration attributes were misconfigured. When using `Attach to Erlang Node` launch.json complains about missing properties of "node", "cwd", and property "config" is not allowed. So, update these attributes in package.json to fix the issues. before: <img width="375" alt="Screenshot 2568-05-30 at 00 37 11" src="https://github.com/user-attachments/assets/e1c794f8-3704-4c6c-b4c8-85888a8d1678" /> <img width="310" alt="Screenshot 2568-05-30 at 00 37 01" src="https://github.com/user-attachments/assets/40ec2068-5b7e-4200-8181-aed9ff63011b" /> after: <img width="333" alt="Screenshot 2568-05-30 at 01 05 09" src="https://github.com/user-attachments/assets/46ee20a4-cd06-4e99-9985-c3e802741864" /> Pull Request resolved: #98 Reviewed By: robertoaloi Differential Revision: D75783374 Pulled By: jcpetruzza fbshipit-source-id: acdd632ec171a3a4cc464bf7577622f8d60683c9
1 parent be1666e commit 4edb9b6

File tree

1 file changed

+26
-17
lines changed

1 file changed

+26
-17
lines changed

editors/code/package.json

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -108,25 +108,34 @@
108108
"configurationAttributes": {
109109
"attach": {
110110
"required": [
111-
"node",
112-
"cwd"
111+
"config"
113112
],
114113
"properties": {
115-
"node": {
116-
"type": "string",
117-
"description": "The node to attach to."
118-
},
119-
"cookie": {
120-
"type": "string",
121-
"description": "Connection cookie."
122-
},
123-
"cwd": {
124-
"type": "string",
125-
"description": "Path to prepend to any relative source file found in beam files. Typically the workspace folder."
126-
},
127-
"stripSourcePrefix": {
128-
"type": "string",
129-
"description": "When source paths in beam files are relative, this can be used to strip a prefix so that they match the filename in the current workspace."
114+
"config": {
115+
"type": "object",
116+
"description": "Debugger configuration",
117+
"required": [
118+
"node",
119+
"cwd"
120+
],
121+
"properties": {
122+
"node": {
123+
"type": "string",
124+
"description": "The node to attach to."
125+
},
126+
"cookie": {
127+
"type": "string",
128+
"description": "Connection cookie."
129+
},
130+
"cwd": {
131+
"type": "string",
132+
"description": "Path to prepend to any relative source file found in beam files. Typically the workspace folder."
133+
},
134+
"stripSourcePrefix": {
135+
"type": "string",
136+
"description": "When source paths in beam files are relative, this can be used to strip a prefix so that they match the filename in the current workspace."
137+
}
138+
}
130139
}
131140
}
132141
},

0 commit comments

Comments
 (0)