Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDEA远程调试代码 #58

Open
toplhy opened this issue Jul 1, 2024 · 0 comments
Open

IDEA远程调试代码 #58

toplhy opened this issue Jul 1, 2024 · 0 comments
Labels

Comments

@toplhy
Copy link
Owner

toplhy commented Jul 1, 2024

1. IDEA配置远程信息

1

2. 配置远程服务

  • 复制图1中的Command line arguments for remote JVM
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
  • 在远程服务上添加第二步的参数

此处以tomcat示例,编辑catalina.sh文件,添加参数。

1

直接以jar包运行的项目,直接在启动命令添加即可:

java `Command line arguments for remote JVM` -jar xxx.jar ...

3. 启动远程服务

1

4. 开始远程调试

@toplhy toplhy added the JAVA label Jul 1, 2024
@toplhy toplhy closed this as completed Jul 11, 2024
@toplhy toplhy reopened this Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant