Skip to content

Commit

Permalink
add remote debugging launch config options
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Aug 3, 2024
1 parent 9af0750 commit 91a0602
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,59 @@
"default": true
}
}
},
"attach": {
"required": [
"projectDir",
"remoteNode"
],
"properties": {
"remoteNode": {
"type": "string",
"description": "Remote OTP node to connect to"
},
"env": {
"type": "object",
"description": "Environment variables to set before debugging - You may want to set MIX_ENV in here."
},
"debugAutoInterpretAllModules": {
"type": "boolean",
"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.",
"default": true
},
"debugInterpretModulesPatterns": {
"type": "array",
"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.\"",
"items": {
"type": "string",
"minLength": 1
}
},
"projectDir": {
"type": "string",
"description": "Project root directory (usually the workspace root)",
"default": "${workspaceRoot}"
},
"excludeModules": {
"type": "array",
"description": "Names of modules not to interpret - If a module contains NIFs, you should exclude it. Examples: Some.Module, :erlang_module",
"items": {
"type": "string",
"minLength": 1
},
"uniqueItems": true
},
"stackTraceMode": {
"type": "string",
"description": "Option passed to :int.stack_trace/1. See https://www.erlang.org/doc/man/int#stack_trace-1 for details",
"enum": [
"all",
"no_tail",
"false"
],
"default": "no_tail"
}
}
}
},
"initialConfigurations": [
Expand Down

0 comments on commit 91a0602

Please sign in to comment.