Windows 10 Phone UWP Debugging

38 views
Skip to first unread message

mcw

unread,
Mar 8, 2017, 2:33:08 PM3/8/17
to CodenameOne Discussions
I am having some problems in my app on a Windows 10 phone. It works fine in the simulator and on Android and iOS. The only way I can see to debug this is to use your Log package and send myself logs to try and see what is happening.

This was working fine until Tuesday afternoon California time, after that I have not been able to get any logs from my device using Log.sendLog().

If I run the app in the simulator and initiate the sendLog, I get the e-mail, but I am no longer getting anything from the device.

Any ideas?

Is there a better way to debug these kinds of issues that only occur on a Windows 10 device?

Thanks

Shai Almog

unread,
Mar 9, 2017, 12:43:06 AM3/9/17
to CodenameOne Discussions
If this works from the simulator but not from the device it means the account should be fine and so is the server/send process.
So the failure is in the build. The question is when was the last good version built and when was the bad version built?

mcw

unread,
Mar 9, 2017, 8:45:01 AM3/9/17
to CodenameOne Discussions
I had been doing UWP builds most of Tuesday and Wednesday, refining the debugging so that I could home in on the problem. The last time I got a log file from the phone was Tuesday afternoon California time.

mcw

unread,
Mar 9, 2017, 9:39:31 AM3/9/17
to CodenameOne Discussions
I backed out my last changes but that didn't help, still no log file from the device, simulator still works.

showLog() is deprecated and doesn't produce any output in the simulator or the device, just an empty form.

I will have to give up on this. I feel I am really close but can't release until; I can fix these last couple of bugs. But there is no way to debug CodenameOne UWP builds.

Steve Hannah

unread,
Mar 9, 2017, 12:27:40 PM3/9/17
to codenameone...@googlegroups.com
I just created a quick app to test this out and built for UWP.  Installed app on Windows 10 (desktop), ran it, and sendLog() worked properly (I received the log).

Here is my test app.

Try building this and see if it works.  

Steve

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/0bdb26d2-9451-481c-a26d-d37499a5c986%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Steve Hannah
Software Developer
Codename One

mcw

unread,
Mar 9, 2017, 2:21:40 PM3/9/17
to CodenameOne Discussions
Thanks for the code.

I tried that on my phone and it worked.

Still nothing from my app. I had been building using the build hint windows.build.version to replace the current app. I decided to uninstall my app and then reinstall. Logging started working again.

Looking at the log it never reset. Even after exiting my app and restarting the log kept growing. It looks like the log is only reset when you uninstall the app. My guess is that the log keeps growing until it is too big and the sendLog starts to fail. It looks like there is a limit on the size of the log sendLog will send. Even before it fails it starts truncating the log.

Is there someway I can reset the log in my code. Right now I am having to uninstall each time I test my app.

Thanks

Shai Almog

unread,
Mar 10, 2017, 1:33:18 AM3/10/17
to CodenameOne Discussions
That's a feature worth adding and should be pretty easy to add, something like clearLog()?
Can you file an RFE? I'm in the middle of something right now and I will probably forget to do it later if there is no reminder.
Reply all
Reply to author
Forward
0 new messages