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

如何在创建虚拟机时Debug代码,从而看到完整的功能流程? #1340

Open
surenwuyuwuqiu opened this issue Aug 7, 2023 · 1 comment

Comments

@surenwuyuwuqiu
Copy link

新人学习,本地已经下载ZStack源码,部署连接了服务器ZStack,并成功创建vm;
已经修改Tomcat文件,在IDEA进行Remote 配置;
现在想学习创建vm的完整功能流程,如何进行断点设置和debug

@AlanJager
Copy link
Contributor

AlanJager commented Aug 7, 2023

新人学习,本地已经下载ZStack源码,部署连接了服务器ZStack,并成功创建vm; 已经修改Tomcat文件,在IDEA进行Remote 配置; 现在想学习创建vm的完整功能流程,如何进行断点设置和debug

可以通过 zstack-ctl 配置环境变量启用对应的功能,提供一个示例命令如下:

zstack-ctl setenv CATALINA_OPTS='-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -Xnoagent -Djava.compiler=NONE'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants