Skip to content

Commit 8011329

Browse files
committed
support 'jlinkscript' for debug config
1 parent bf5580a commit 8011329

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/extension.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2078,6 +2078,10 @@ class ExternalDebugConfigProvider implements vscode.DebugConfigurationProvider {
20782078
m = /(?:-USB|-SelectEmuBySN) ([^\s]+)/.exec(flasherCfg.otherCmds);
20792079
if (m && m.length > 1)
20802080
dbgCfg['serialNumber'] = m[1];
2081+
// -JLinkScriptFile <ScriptFilePath>
2082+
m = /-JLinkScriptFile ([^\s"]+|"[^"]+")/.exec(flasherCfg.otherCmds);
2083+
if (m && m.length > 1)
2084+
dbgCfg['jlinkscript'] = m[1];
20812085
}
20822086
result.push(dbgCfg);
20832087
result.push(newAttachDebugCfg(dbgCfg));

0 commit comments

Comments
 (0)