admin管理员组

文章数量:1356831

I have java application started remotely(spring boot). We have gitlab pipeline which generates deb package and starts it on Ubuntu OS.

I can do some things with that environment. For example restart:

sudo systemctl restart myapp.service

Now I want to enable remote debug of that application. But How can I restart it with debug enabled ?

I know that I have to write somewhere:

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

But I don't know where. Could you please clarify ? I suppose that this line has to be added somewhere here:

本文标签: spring bootHow to enable remote debug in java app wrapped to deb packageStack Overflow