spring boot - How to enable remote debug in java app wrapped to deb package? - Stack Overflow

I have java application started remotely(spring boot).We have gitlab pipeline which generates deb pack

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:

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744047457a4549444.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信