简体   繁体   中英

How to debug Leshan Code in Eclipse

I am referring to Leshan Code Leshan Server . I have successfully downloaded, Compiled and even built JAR file using maven command line.

I have followed all the steps but i am unable to make the code run from Eclipse. I am unable to find which option should i choose in "Run As" menu of Eclipse so as to make .jar binary from Leshan code via Eclipse.

The Jar Binary gets created if i use the steps mentioned in above URL via command line, but i want to debug the same code via Eclipse.

Can any one please help me how can i do this?

You first need to import the Leshan projects using the "Import Existing Maven Projects" wizard.

导入现有的Maven项目

Select the location where you have cloned Leshan locally (you may also want to do the repository cloning right from Eclipse using EGit)

选择乐山项目的位置

Once the projects are imported (the Maven plug-in may complain about a missing "replacer" plug-in but that won't prevent you from debugging), the entry point to launch the Leshan server is the Leshan standalone class.

调试乐山

You now have Leshan running at http://localhost:8080 and you can debug it!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM