# Enabling DEBUG mode

**URL:** <https://community.sonarsource.com/t/enabling-debug-mode/51434>\
**Category:** IntelliJ Platform\
**Tags:** gradle, intellij\
**Created:** [October 13, 2021, 7:45pm UTC](https://community.sonarsource.com/t/enabling-debug-mode/51434 "2021-10-13T19:45:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeslie](https://avatars.discourse-cdn.com/v4/letter/j/ccd318/32.png) [@jeslie](https://community.sonarsource.com/u/jeslie)\
**Post date:** [October 13, 2021, 7:45pm UTC](https://community.sonarsource.com/t/enabling-debug-mode/51434/1 "2021-10-13T19:45:01Z")

</div>

I get “Unresolved imports/types have been detected during analysis. Enable DEBUG mode to see them.” using SonarLint with Gradle (with target **:sonarlintMain** , but not with **:sonarlintTest** ). How do I enable this DEBUG mode?

---

<div class="post-metadata">

**Author:** ![Megan](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/megan/32/22554_2.png) [@Megan](https://community.sonarsource.com/u/Megan)\
**Post date:** [October 13, 2021, 8:04pm UTC](https://community.sonarsource.com/t/enabling-debug-mode/51434/2 "2021-10-13T20:04:31Z")

</div>

**DEBUG Log of SonarLint Analysis** : you can raise the log level by enabling the 2 options: **Analysis logs** and **Verbose output**. From the SonarLint Console, click the settings gear wheel on the right, it will open a dropdown which will let you select one by one the Analysis logs and Verbose output. Please note that the 2 options have to be checked in order to have the highest level of verbosity in logs.

---

<div class="post-metadata">

**Author:** ![jeslie](https://avatars.discourse-cdn.com/v4/letter/j/ccd318/32.png) [@jeslie](https://community.sonarsource.com/u/jeslie)\
**Post date:** [October 13, 2021, 8:25pm UTC](https://community.sonarsource.com/t/enabling-debug-mode/51434/3 "2021-10-13T20:25:17Z")

</div>

I have no errors in IntelliJ (though thanks for the info, I now have it set by default in IntelliJ). My problem only appears when I run SonarLint directly via Gradle, for example ./gradlew check. What do I need to set in my **build.gradle** (or other) file to turn on DEBUG mode?

---

<div class="post-metadata">

**Author:** ![JBL\_SonarSource](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/jbl_sonarsource/32/64_2.png) [@JBL\_SonarSource](https://community.sonarsource.com/u/JBL_SonarSource)\
**Post date:** [October 14, 2021, 8:01am UTC](https://community.sonarsource.com/t/enabling-debug-mode/51434/4 "2021-10-14T08:01:34Z")

</div>

Hello Jeslie, are you talking about the [SonarLint Gradle plugin](https://remal.gitlab.io/gradle-plugins/plugins/name.remal.sonarlint/)?

If so, according to [their documentation](https://remal.gitlab.io/gradle-plugins/plugins/name.remal.sonarlint/), you might want to add something like `sonarProperty("sonar.debug", "true")` somewhere in your `build.gradle`.

If you have any trouble with this plugin, I suggest that you raise the point to the original author, e.g in [their Gitlab’s issues section](https://gitlab.com/remal/gradle-plugins/-/issues) - this is a community plugin which is not supported by SonarSource, as far as I can tell.
