I am trying to debug my game in logcat but when I add the script debugger in the build settings my logcat gets flooded with profiler is only supported in Unity Pro.. Since I'm not using the profiler and only use the Google Play Services as a 3th party script I suspect it of starting the profiler.
If so, how do I turn that off so I can debug properly? If not, what else could it be?
I have been trying to filter the text message profiler is only supported in Unity Pro. out of logcat but without success. I'm using the UI monitor.bat in the tools map that come with the Android-SDK. This should be a workaround.
According to the documentation: http://docs.unity3d.com/Manual/Profiler.html - the profiler is a Pro only feature.
The profiler is different from the debug log messages.
To get debug messages out of my app, I call Debug.Log("....") in my scripts, and just run adb logcat and the messages show up:
I/Unity (12241): Status Update: Starting sign-in...
Related
If i have an alert in my app
alert("howdy");
What do i have to do to view that alert using the adb logcat command? I've tried adb logcat *:v but nothing shows up - even though I can see the alert in the running app!
alert() shows a dialog in Android, doesn't do any console/adb.
However, if you want things to show up you should use logging tools
If you dive into documentation you need to use the debug, info and error methods to insert different levels of logging.
console.log(), console.warn() and console.error() work too.
When I debug a Cordova app what I constantly do is step through its code inside Chrome's WebInspector. In order to be able to do this, however, I have to wait for the device to become ready in chrome://inspect/#devices (only then can I click on the appearing link for the started app). But if I do this the inspector will not halt on breakpoints if I am not quick enough. How do experienced Cordova developer tackle this issue?
Additionally to frank's comment I just found GapDebug which offers instant debug and, thus, comes close to what I deserve.
I'm doing research on choosing a w3 framework for mobile apps(native) and came across trigger.io
As some of the team come from a very corporate / enterprisey background, Breakpoints + Debug is a key feature. I've watched the catalyst video and it looks very cool. However I didn't see breakpoints being set.
Do you know if its possible to set breakpoints + debug in trigger.io? Can I remote debug javascript when my app is running on device?
Thanks
Trigger.io Catalyst is a hosted version of the Weinre open-source project. Unfortunately it does not support setting break-points.
It is possible to display log messages in the console and to query the DOM and JavaScript namespace from the console which is a big step up from alerts.
One approach to development is to build the user flow on the web first so you can use the Chrome debug tools with breakpoints. And then add the native features (which can only be tested on the device / emulator) at end. Trigger.io's build to web feature supports this mode of development:
When a Blackberry phone is connected via USB and in debug mode, calls made to System.out.println() are visible in the log.
But is there any way to get access to "stdout" even from a program not in debug mode? Attaching with some command line program perhaps?
I worked around the issue by creating an over-the-network logging function.
If you have the JDE installed and BB plugged in via a USB:
JavaLoader.exe -usb eventLog > theLog.txt
This is often much more convenient for accessing the logs during dev.
There's no way to programmatically get the content though.
When debugging in the blackberry simulator, the console prints out a lot of other information relevant to the simulator along with the debug information printed in the application I develop. Is there a way to print only the debug messages of the application I am running in the simulator?
I always format my debug messages in specific way:
System.out.print(" ---RTP:"+message);
So it's easy to find specific message from my app.
Also, it's great to scrollock console searching or reading messages.