Skip to content

Commit 91a0602

Browse files
committed
add remote debugging launch config options
1 parent 9af0750 commit 91a0602

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

package.json

+53
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,59 @@
398398
"default": true
399399
}
400400
}
401+
},
402+
"attach": {
403+
"required": [
404+
"projectDir",
405+
"remoteNode"
406+
],
407+
"properties": {
408+
"remoteNode": {
409+
"type": "string",
410+
"description": "Remote OTP node to connect to"
411+
},
412+
"env": {
413+
"type": "object",
414+
"description": "Environment variables to set before debugging - You may want to set MIX_ENV in here."
415+
},
416+
"debugAutoInterpretAllModules": {
417+
"type": "boolean",
418+
"description": "When debugging, interpret all files. Note: Only interpreted files will be part of the debugging stack traces. However this has a performance impact on large repositories, so if debugging is too slow, disable debugAutoInterpretFiles and use debugInterpretModulesPatterns to specify which files to interpret.",
419+
"default": true
420+
},
421+
"debugInterpretModulesPatterns": {
422+
"type": "array",
423+
"description": "The modules to interpret when debugging - For details of interpreting, see the :int module in Erlang. Only modules that are interpreted will show up in the debugger stacktrace. An example of a pattern is: \"MyApp.*\", which will interpret all modules that begin with \"MyApp.\"",
424+
"items": {
425+
"type": "string",
426+
"minLength": 1
427+
}
428+
},
429+
"projectDir": {
430+
"type": "string",
431+
"description": "Project root directory (usually the workspace root)",
432+
"default": "${workspaceRoot}"
433+
},
434+
"excludeModules": {
435+
"type": "array",
436+
"description": "Names of modules not to interpret - If a module contains NIFs, you should exclude it. Examples: Some.Module, :erlang_module",
437+
"items": {
438+
"type": "string",
439+
"minLength": 1
440+
},
441+
"uniqueItems": true
442+
},
443+
"stackTraceMode": {
444+
"type": "string",
445+
"description": "Option passed to :int.stack_trace/1. See https://www.erlang.org/doc/man/int#stack_trace-1 for details",
446+
"enum": [
447+
"all",
448+
"no_tail",
449+
"false"
450+
],
451+
"default": "no_tail"
452+
}
453+
}
401454
}
402455
},
403456
"initialConfigurations": [

0 commit comments

Comments
 (0)