Software Archive
Read-only legacy content
17061 Discussions

How I can see log when build run on real device?

Giovanni_S_
Beginner
416 Views

Hi,

There is any way to access to application logs (logged using console.log) generated when app is running by real build on real device?

I usually use debug mode to see logs, but, now, i need to run app by build and see logs.

Thanks in advance.

 

0 Kudos
4 Replies
Elroy_A_Intel
Employee
416 Views

You recommend using the Debug tab as you will be running the application locally on your device while having access to all of the logs, network traffic and more. You can also see logs using the script provided under the Test Tab.

0 Kudos
Rakshith_K_Intel
Employee
416 Views

You can debug installed app using Chrome, its complicated:

 

In the develop tap, open intelxdk.config.additions.xml file

You will see a line:

<preference name="debuggable" value="false" />

change this to 

<preference name="debuggable" value="true" />

 

Build App using XDK and install on device.

Connect device to computer using USB.

Open Chrome and install "ADB plugin" extension.

Start the app on device.

On Chrome, click ADB icon and select "View Inspection Targets"

select the app id in the list displayed in Chrome, it will open debug console and u can debug and see console logs

 

Change the debug back option to false when u have to submit the app to google playstore

 

0 Kudos
Giovanni_S_
Beginner
416 Views

Thank you for your kindly reply. Is it possibile to use the same procedure to debug ios app version?

Thank You

0 Kudos
PaulF_IntelCorp
Employee
416 Views
0 Kudos
Reply