question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Libraries' @DebugLog doesn't work

See original GitHub issue

My project has a number of modules apart from the actual app. Today I’ve tried to use Hugo on one of the ‘android-library’ modules, and nothing is logged when the app module runs.

Project modules: app (has compile project(':mylibrary')) mylibrary (has apply plugin: 'hugo')

Already tried to also apply plugin: 'hugo' on the app module, with no luck.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
Tagakovcommented, Sep 30, 2015

Just for clarifying. It can be done by adding

android {
    publishNonDefault true

    //...
}

in module’s build.gradle and the

dependencies {
    //...
    debugCompile    project(path: ':module', configuration: 'debug' )
    releaseCompile  project(path: ':module', configuration: 'release' )
}

in the application’s build.gradle.

0reactions
JakeWhartoncommented, Dec 17, 2014

This is a Gradle and Android plugin problem, not this library.

More info at http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Library-Publication with configuration to publish the debug variant which could be enabled with a -Dflag from the CLI as a temporary workaround.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debug.WriteLine from Logging Assembly in Release Mode ...
The problem is that when the application using the logging library calls DebugLogger.PerformLogging("some debug message") nothing shows up in the Visual Studio ...
Read more >
problems with library scanning, request more info in debug ...
I've got loads of movies with nfo files which I'm trying to move into Emby. it mostly works but I have an issue...
Read more >
Tip: Easier debug log toggling - Libraries - Arduino Forum
Hi. This doesn't work for me with ESP8266. It looks like the compiler has problem with replacing the object. Instead I used these...
Read more >
Debug and troubleshoot WebGL builds - Unity - Manual
Debug and troubleshoot WebGL builds. Visual Studio doesn't support debugging Unity WebGLA JavaScript API that renders 2D and 3D graphics in ...
Read more >
Enabling core debug logs | Node Cookbook - Third Edition
This should give output similar to the following screenshot: How it works... The NODE_DEBUG environment variable can be set to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found