M
M
mitaichik2016-03-19 13:10:24
Java
mitaichik, 2016-03-19 13:10:24

How to run/debug an application from IDEA in virtual machine?

Hello! I am making an application in IDEA CE, but I need to run and debug it on a virtual machine (Ubuntu on Vagrant). I found descriptions on the Internet how to do this for different servers (JBoss, Tomcat), but I don’t have all this - I have a bare java application that I will just run at system startup.
Tell me how to do this, or what kind of manual can I have ...
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MamOn, 2016-03-19
@mitaichik

You do not understand how to run or how to debug an application on another host? With the first one, I don’t think that there should have been problems, but in order to run the application in debug mode over the network, you need to specify the following parameters when starting the jvm:
And then, in IDEA, configure the "Remote" debug launch profile to connect over the network to port 5005 of the remote host. For example, as here, just specify the correct Host of your virtual machine:
(the picture is stolen from the first instruction on the Internet)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question