- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi...
Im trying see the error log in the cel.
I'm using console.log handler, but I can see bugs only in the emulator, and would like to see on Android device.
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use the DEBUG tab and connect your Android device by using the "Debug App on Device" button (your device must be USB connected)
Now you will get the debugger view and with the console window at the bottom (if not: use the "Show drawer" button in the right top conner)
Here you can see the JS errors and your console.log(text) messages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Also, if you are using App Designer there is a "Console" widget you can add to your app that will show you all console.log messages and allow you to evaluate JS interactively. It's not very fancy, but can be handy if you need something quick and dirty.
The previous reply is the smarter way to proceed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ad wrote:
Use the DEBUG tab and connect your Android device by using the "Debug App on Device" button (your device must be USB connected)
Ad
It does not work for me... I'm using connection bluetooth and does not work properly in the emulator and AppPreview
CHRIS P.
I dont use App Designer
In Intel AppCenter there's a script to help debugging, but it always disconnects and I can not finish my debug
When open the APP on the device it connects , but when I start using it disconnects alone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Dani,
Why don't you use the TEST tab in XDK and follow the instructions for "On Device Debugging"?
You need to embed another Weinre Tag in your HTML file and push your files to the server.
Start your App in the Intel App Preview App and hit the "Begin Debugging On Device" button in the TEST tab.
In the Weinre debug windows you will find the Console, where you can use the command "console.log(msg)" to 'debug' your app.
I hope this will help to solve your problem,
Ad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Dani,
All are valid suggestions. I have one more. We have a sample app that has a small console window below the app that displays all console.log messages. https://github.com/xmnboy/hello-cordova
All you have to do is all this code in index.html at the end:
<div class="align-center" > <textarea id="id_textArea" class="align-left" style="height:35rem; width:90%" readonly="readonly" wrap="off"></textarea> </div>
And then create this file (https://github.com/xmnboy/hello-cordova/blob/master/www/js/util.js) and put it in your www/js/ folder.
You will then have to add a reference to this file in index.html:
<script src="js/util.js"></script>
This console window can be viewed via the emulator, app preview, on-device debugging, built app etc.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page