# Debug native output

**URL:** <https://discuss.gradle.org/t/debug-native-output/9508>\
**Category:** Help/Discuss\
**Created:** [May 6, 2015, 3:59pm UTC](https://discuss.gradle.org/t/debug-native-output/9508 "2015-05-06T15:59:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jadamcrain](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/jadamcrain/32/2364_2.png) [@jadamcrain](https://discuss.gradle.org/u/jadamcrain)\
**Post date:** [May 6, 2015, 3:59pm UTC](https://discuss.gradle.org/t/debug-native-output/9508/1 "2015-05-06T15:59:26Z")

</div>

I am having trouble debugging a native Gradle build. The only way I can seem to get Gradle to print any info about what the actual g++ invocations are is to use -d which results in a deluge of unnecessary information. Is there a simple way to see the compiler output? Ideally, this would be a the default I could set in my build file.

---

<div class="post-metadata">

**Author:** ![sterling](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/sterling/32/5395_2.png) [@sterling](https://discuss.gradle.org/u/sterling)\
**Post date:** [May 8, 2015, 1:05am UTC](https://discuss.gradle.org/t/debug-native-output/9508/2 "2015-05-08T01:05:43Z")

</div>

We generate an options file (build/tmp//options.txt) that has all of the common arguments. You can use `-i` or `--info` to see just the command line that’s being executed (per source file) as well.

There’s a hook `withArguments` that will let you see/modify the arguments, but it’s only the common arguments and not the per-file arguments.
