Red5 / red5-eclipse-plugin

GNU Lesser General Public License v3.0
61 stars 52 forks source link

How to debug Red5 Application through red5-eclipse-plugin? #9

Open zhc341272 opened 8 years ago

zhc341272 commented 8 years ago

I use Red5(1.0.7) and the last red5-eclipse-plugin, also use Eclipse(Mars.2). But I cant debug my application, breakpoints are in use, have blue check mark, unfortunately I cant debug my application. I think the reason is that the class file which Red5 use is not the same to Eclipse`s java file, but I use red5-eclipse-plugin to creat project and config correctly, would you please help me to make it in use to debug the application through red5-eclipse-plugin? thx very much!~~

mondain commented 8 years ago

@rajdeeprath might have some insights on this.

rajdeeprath commented 8 years ago

Try this: (assuming you installed plugin correctly and setup a project properly without any errors showing)

  1. In your project create a new server
  2. Select Infrared5 => Red5 server runtime
  3. Select your red5 server root, webapps location, debug and shutdown scripts as necessary in the options shown.
  4. Once server is created , right click it and click "Add and Remove" and add your application to it
  5. Right click server and click publish
  6. Right click server and click debug

Your server should now start in debug mode from there on and will include your application in webapps folder.

zhc341272 commented 8 years ago

@rajdeeprath thx for your answer very much. First, Im sure that the plugin is installed correctly, because I can write my application and compile it, and I can find java class files in webapps folder(BUILD SUCCESSFUL Total time: 5 seconds). Unfortunately, it doesnt stop when running to the breakpoint. What`s wrong? Help~ 555555555~~