最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin1浏览0评论

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:

发布评论

评论列表(0)

  1. 暂无评论