杞嚜錛?div style="display: inline-block; ">
http://blog.csdn.net/caihaijiang/article/details/5903154Eclipse涓婦ebug鏃訛紝寮瑰嚭閿欒鎻愮ず錛?#8220;Unable to install breakpoint due to missing line number attributes. Modify compiler options to generate line number attributes”錛屾棤娉曡繘琛岃皟璇曘?/p>
閬囧埌榪欎釜閿欒鏃舵壘鍒扮殑瑙g瓟鏂規(guī)姹囨伙細(xì)
1銆佷慨鏀?span class="hilite5">Eclipse
鐨刯ava緙栬瘧鍣ㄤ嬌鐢╦dk錛岃屼笉鏄痡re錛?br />2銆佷嬌鐢ˋnt緙栬瘧鏃訛紝鏈墦寮debug寮鍏籌紝鍦ㄥ啓javac 浠誨姟鏃訛紝璁劇疆debug="true"錛屽惁鍒欎笉鑳借皟璇曘俆He settings for the eclipse compiler don't affect the ant build and even if you launch the ant build from withineclipse. ant controls it's own compiler settings.you can tell ant to generate debugging info like this 'javac ... debug="true".../>錛涳紙鎴戦亣鍒扮殑闂錛屾槸閲囩敤榪欎釜鍔炴硶瑙e喅鐨勶級
Eclipse緙栬瘧鏃跺嚭鐜癘utof Memory闂錛岃В鍐沖姙娉曞涓嬶細(xì)
window->preferences->java->Installed JREs錛岄夋嫨瀹夎鐨刯re錛堝jdk1.5.0錛夛紝鍗曞嚮鍙寵竟鎸夐挳“Edit”錛屽脊鍑?#8220;Edit JRE”鐨勫璇濇錛屽湪Default VM Argument鐨勮緭鍏ユ涓緭鍏ワ細(xì)-Xmx512m錛岀劧鍚庢寜紜畾錛屽嵆鍙?-Xms鏄瀹氭渶灝忓唴瀛橈紝-Xmx鏄瀹氭渶澶у唴瀛橈級