Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I debug a remote application in my eclipse

I am running my server from outside of my eclipse and now i want to debug it. so is it possible ? If yes how can i do that.

like image 372
GuruKulki Avatar asked Jan 01 '10 06:01

GuruKulki


People also ask

How do I debug a deployed application?

To use Visual Studio to debug a deployed application, you must attach to the ASP.NET worker process and make sure that the debugger has access to symbols for the application. You must also locate and open the source files for the application.

What is remote debugging in Java?

Remote Java Debugging is the process of debugging a Java program or application running on another machine or a server environment.


1 Answers

1) Specify this option on remote JVM.

-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005

Note that now the debug server is running at this remote host and port 5005.

2) In Eclipse, create and run remote debug config under Run > Debug> Debug Configurations... > Remote Java Application.

like image 141
Chandra Patni Avatar answered Nov 15 '22 00:11

Chandra Patni