资源描述:
《使用 Eclipse 远程调试 Java 应用程序 毕业设计(论文)外文翻译》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、年月日毕业设计外文文献翻译《DebugJavaapplicationsremotelywithEclipse》姓名学号100350120指导教师专业信息与计算科学学院理学院年月日UsethepoweroftheEclipseIDEtospreadaroundyourJavaapplicationdebuggingLevel:IntermediateCharlesLu(charleslu@tw.ibm.com),SoftwareEngineer,IBM09Dec2008Youdon'tneedtodebugJava™applicatio
2、nsonjustyourlocaldesktop.Learnhowtospreadaroundyourdebuggingusingdifferentconnectiontypesthatmakeupremotedebugging.Thisarticleexplainsthefeaturesandexamplesthatshowhowtosetupremoteapplicationdebugging.Remotedebuggingcanbeusefulforapplicationdevelopment,suchasdevelopinga
3、programforalow-endmachinethatcannothostthedevelopmentplatform,ordebuggingprogramsondedicatedmachineslikeWebservers,whoseservicescannotbeshutdown.OtherexamplesincludeJavaapplicationsrunningwithlimitedmemoryorCPUpower,suchasmobiledevices,ordeveloperswantingtoseparatetheap
4、plicationanddevelopmentenvironments,etc.PrerequisitesLaunch-configurationtypeAlaunchconfigurationkeepsasetofattributesthatcanbeusedtolaunchaprogram.Thelaunch-configurationtypeisauniquetypeofprogramthatcanbelaunchedintheEclipseplatform.Ifyoudon'thaveitalready,downloadEcl
5、ipseV3.4(Ganymede).InGanymede,thesocketlisteningconnectorhasbeenaddedtotheRemoteJavaApplicationlaunch-configurationtype.Eclipse'snewsocketlisteningconnectorallowsyoutostarttheJavadebugger,whichlistensforaconnectiononaspecificsocket.Theprogrambeingdebuggedcanthenbestarte
6、dwithcommand-lineoptionstoconnecttothedebugger.PriortotheGanymederelease,onlyasocket-attachingconnectorwasprovided,andtheprogrambeingdebuggedhadtobeadebughostthatwasconnectedbythedebugger.ItisimpracticalformobiledevicestobeahostduetoinsufficientmemoryandCPUpower.Tousere
7、motedebugging,JavaVirtualMachine(JVM)V5.0orlatermustbeused,suchasIBM®J9orSunMicrosystems'JavaSEDevelopmentKit(JDK).Inthisarticle,wefocusonremotedebugging,ratherthandetaileachofEclipse'sdebuggingfeatures.SeeResourcesformoreinformationaboutdebuggingwithEclipseandwheretofi
8、ndtheaforementionedsoftware.JPDAintroductionFrequentlyusedacronyms·JDI—JavaDebugInterface·JDT—JavaDevelopmentT