Skip to content
This repository has been archived by the owner on Jun 28, 2019. It is now read-only.

[debug]how to debug application efficiently

qi.zhang edited this page Dec 23, 2013 · 2 revisions

Here is a kind of skill to efficiently debug mayloon-runtime in chrome.

  • Step1: Find out core.z.js
eclipse\plugins\net.sf.j2s.lib_2.0.0\j2slib\java\core.z.js

  • Step2: Add below code before “String.prototype.hashCode”
String.prototype.testDebug=function(){return "";};


  • Step3: We can use “new String().testDebug();” as an entry before the point that we want to debug in java or in js. 


  • Step4: Use chrome console add breakpoint at method testDebug. 

Ok, we can use this skill to track now.