Enable one-click debugging via the "Enable debug logging" rerun option

This commit is contained in:
Henry Mercer 2022-06-28 22:49:42 +01:00
parent ca8a203b51
commit 53850d88bb
9 changed files with 23 additions and 18 deletions

2
lib/analyze-action.js generated
View file

@ -158,7 +158,7 @@ async function run() {
console.log(`Failed to upload database debug bundles: ${error}`);
}
}
if (core.isDebug() && config !== undefined) {
if (config !== undefined && config.debugMode) {
core.info("Debug mode is on. Printing CodeQL debug logs...");
for (const language of config.languages) {
const databaseDirectory = util.getCodeQLDatabasePath(config, language);