Skip to content

Commit 48b0a91

Browse files
committed
core/Discoverer: increase trace verbosity
1 parent 9eedea9 commit 48b0a91

File tree

1 file changed

+14
-2
lines changed
  • ilg.gnumcueclipse.core/src/ilg/gnumcueclipse/core/preferences

1 file changed

+14
-2
lines changed

Diff for: ilg.gnumcueclipse.core/src/ilg/gnumcueclipse/core/preferences/Discoverer.java

+14-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public static String searchInstallFolder(String executableName, String searchPat
9292
}
9393

9494
if (Activator.getInstance().isDebugging()) {
95-
System.out.println("Discoverer.searchInstallFolder() resolved path " + resolvedPath);
95+
System.out.println("Discoverer.searchInstallFolder() resolved path \"" + resolvedPath + "\"");
9696
}
9797

9898
// Try paths in order; return the first.
@@ -210,7 +210,7 @@ public static String getLastExecutable(String folderName, final String binFolder
210210
IPath folderPath = new Path(folderName);
211211

212212
if (Activator.getInstance().isDebugging()) {
213-
System.out.println("Discoverer.getLastExecutable(" + folderPath + ", " + executableName + ")");
213+
System.out.println("Discoverer.getLastExecutable(\"" + folderPath + "\", \"" + executableName + "\")");
214214
}
215215

216216
List<String> list = new ArrayList<String>();
@@ -235,6 +235,9 @@ public boolean accept(File dir, String name) {
235235
path = path.append(executableName);
236236
}
237237
if (path.toFile().isFile()) {
238+
if (Activator.getInstance().isDebugging()) {
239+
System.out.println("Discoverer.getLastExecutable() found \"" + path.toString() + "\"");
240+
}
238241
return true;
239242
}
240243
return false;
@@ -258,6 +261,9 @@ public boolean accept(File dir, String name) {
258261
if (binFolder != null) {
259262
path = path.append(binFolder);
260263
}
264+
if (Activator.getInstance().isDebugging()) {
265+
System.out.println("Discoverer.getLastExecutable() = \"" + path.toString() + "\"");
266+
}
261267
return path.toString();
262268
} else {
263269
IPath path = (new Path(folderName));
@@ -273,10 +279,16 @@ public boolean accept(File dir, String name) {
273279
if (binFolder != null) {
274280
path = path.append(binFolder);
275281
}
282+
if (Activator.getInstance().isDebugging()) {
283+
System.out.println("Discoverer.getLastExecutable() = \"" + path.toString() + "\"");
284+
}
276285
return path.toString();
277286
}
278287
}
279288

289+
if (Activator.getInstance().isDebugging()) {
290+
System.out.println("Discoverer.getLastExecutable() not found");
291+
}
280292
return null;
281293
}
282294

0 commit comments

Comments
 (0)