mloret
mloret

Reputation: 13

Cordova : how to debug android --prod build

I have an issue with a cordova application which occurs only when building it with the command : cordova build android --prod --release When building in debug mode, everything works fine.

I use chrome://inspect to debug my app, but this work only with debug build

How can I inspect and debug my app when building for production ?

Edit: no solution, this seem to be impossible to do.

Upvotes: 0

Views: 439

Answers (2)

Maurilio Atila
Maurilio Atila

Reputation: 166

If someone wants to do debug in production, is possible using this configuration in the config.xml file, for android:

<widget ... >
<name>myapp</name>
<platform name="android">
    <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
        <application ... android:debuggable="true" />
    </edit-config>
</platform>

Upvotes: 1

Durzan
Durzan

Reputation: 53

You can't debug the release version of your application with chrome://inspect because debugging in release version is deactivated. You have to use the debug version to debug your app.

Upvotes: 0

Related Questions