diff --git a/src/main/java/com/github/maven_nar/cpptasks/CCTask.java b/src/main/java/com/github/maven_nar/cpptasks/CCTask.java index aef21e6f..d2881b77 100644 --- a/src/main/java/com/github/maven_nar/cpptasks/CCTask.java +++ b/src/main/java/com/github/maven_nar/cpptasks/CCTask.java @@ -994,7 +994,11 @@ private BuildException runTargetPool(final CCTaskProgressMonitor monitor, BuildE if (compileException == null && exception instanceof BuildException) { compileException = (BuildException) exception; } else { - log(cores[j].getName() + " " + exception + " ", Project.MSG_ERR); + log(cores[j].getName() + " " + exception + " ", Project.MSG_ERR); + final StackTraceElement[] stackTrace = exception.getStackTrace(); + for (final StackTraceElement element : stackTrace) { + log(element.toString(),Project.MSG_DEBUG); + } } if (!this.relentless) { cores[j] = null;