______ ______ _____ ______ ______ __ ______ ______
/\ ___\ /\ __ \ /\ __-. /\ __ \ /\__ _\ /\ \ /\ __ \ /\ ___\
\ \ \____ \ \ \/\ \ \ \ \/\ \ \ \ __ \ \/_/\ \/ \ \ \____ \ \ __ \ \ \___ \
\ \_____\ \ \_____\ \ \____- \ \_\ \_\ \ \_\ \ \_____\ \ \_\ \_\ \/\_____\
\/_____/ \/_____/ \/____/ \/_/\/_/ \/_/ \/_____/ \/_/\/_/ \/_____/
Codatlas understands program just as your IDE
does. It's just for the Web from its very beginning. More scalable and
accessible. codatlas.js
provides a convenient way to combine
Codatlas's powerful code analysis capability
with your web applications. Just a few lines of code, you get a better
and deeper understanding of you program!
java.lang.ClassCastException: android.os.BinderProxy cannot be cast to com.ayst.healthkit.cq
at com.ayst.healthkit.bp.onServiceConnected(MainActivity.java:492)
at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1140)
at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1157)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:5292)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)
at dalvik.system.NativeStart.main(Native Method)
They are all packed with codatlas.js
now. Use with caution if you extend them.
Using codatlas service is simple, just put the following lines in your webpage,
all the source code are under dist
folder:
<script src="/codatlas.js"></script>
<link rel="stylesheet" href="/codatlas.css" />
<link rel="stylesheet" href="/tooltipster.css" />
One more thing you need to do is add the data-codatlas-lang
attribute to the
code segment you want codatlas.js
to analyze. The options to
data-codatlas-lang
are: auto
, stacktrace
, more to come later. Use auto
if you want codatlas.js
to automatically detect the language.
For the above example, the code should be:
<pre data-codatlas-lang="stacktrace">
<code>
java.lang.ClassCastException: android.os.BinderProxy cannot be cast to com.ayst.healthkit.cq
at com.ayst.healthkit.bp.onServiceConnected(MainActivity.java:492)
at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1140)
at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1157)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:5292)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)
at dalvik.system.NativeStart.main(Native Method)
</code>
</pre>
To generate codatlas.js
, cd
to src
, then type:
make gen
It will generate a file named codatlas.js
under the same directory.