Skip to content

Commit

Permalink
Feat:xmake-io#276 添加对动态库的调试支持
Browse files Browse the repository at this point in the history
Detail:使Target字段可以输入完整的外部exe路径,此时调试时会启动此exe,此exe加载dll时,已验证可调试。
  • Loading branch information
冯金福 committed Dec 20, 2024
1 parent 30048e9 commit 6c2cee7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/launchDebugger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,12 @@ class XmakeConfigurationProvider implements vscode.DebugConfigurationProvider {

const targetInformations = await getInformations(config.target);

// if target is a program full path
if (fs.existsSync(config.target))
{
targetInformations.path = config.target;
}

// Set the program path
if (!(targetInformations.path && fs.existsSync(targetInformations.path))) {
await vscode.window.showErrorMessage('The target program not found!');
Expand Down

0 comments on commit 6c2cee7

Please sign in to comment.