Skip to content

Commit 6f4697d

Browse files
authored
Merge pull request #19 from advanced-security/jsinglet/repo-library-issue
enable debugging
2 parents 0cc5523 + 7d16481 commit 6f4697d

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/CodeQLToolkit.Shared/CodeQL/CodeQLInstallation.cs

+14-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using LibGit2Sharp;
77
using System.IO.Compression;
88
using System.Diagnostics;
9+
using System;
910

1011

1112

@@ -284,6 +285,17 @@ private void CustomBundleInstall()
284285
// next, we run the bundling tool.
285286
// typical command line:
286287
// codeql_bundle -b .\scratch\codeql-bundle-win64.tar.gz -o scratch\out -w .\tests\workspace\ --help
288+
var bundleArgs = $"--log DEBUG -b {customBundleSource} -o {CustomBundleOutputDirectory} -w {workingDirectory} {packs}";
289+
290+
if (QuickBundle)
291+
{
292+
Log<CodeQLInstallation>.G().LogInformation($"Note: Quick Bundles enabled and pre-compilation will be disabled...");
293+
bundleArgs = $"--log DEBUG -nc -b {customBundleSource} -o {CustomBundleOutputDirectory} -w {workingDirectory} {packs}";
294+
}
295+
296+
Log<CodeQLInstallation>.G().LogInformation($"Executing Bundle Tool with Working Directory: `{workingDirectory}`");
297+
Log<CodeQLInstallation>.G().LogInformation($"Executing Bundle Tool with Arguments: `{bundleArgs}`");
298+
287299
using (Process process = new Process())
288300
{
289301
process.StartInfo.FileName = ToolUtil.GetTool("codeql_bundle");
@@ -294,11 +306,11 @@ private void CustomBundleInstall()
294306
if (QuickBundle)
295307
{
296308
Log<CodeQLInstallation>.G().LogInformation($"Note: Quick Bundles enabled and pre-compilation will be disabled...");
297-
process.StartInfo.Arguments = $"-nc -b {customBundleSource} -o {CustomBundleOutputDirectory} -w {workingDirectory} {packs}";
309+
process.StartInfo.Arguments = bundleArgs;
298310
}
299311
else
300312
{
301-
process.StartInfo.Arguments = $"-b {customBundleSource} -o {CustomBundleOutputDirectory} -w {workingDirectory} {packs}";
313+
process.StartInfo.Arguments = bundleArgs;
302314
}
303315

304316
process.Start();

0 commit comments

Comments
 (0)