[6]深入浅出工作开源框架Camunda: 如何远程Debug camunda-webapp的源代码
我们在研究Camunda的功能的时候,想debug到程序里面去看看其源代码是如何工作的。那么如何搭建远程Debug Camunda Webapp的源代码呢?如何进入断点?如何进行观察相应的信息呢?1. 前提条件是需要下载Camunda的的源代码,笔者以Camunda 7.16为例子。打开https://github.com/camunda/camunda-bpm-platform, 然后点击Tag
·
我们在研究Camunda的功能的时候,想debug到程序里面去看看其源代码是如何工作的。那么如何搭建远程Debug Camunda Webapp的源代码呢?如何进入断点?如何进行观察相应的信息呢?
- 前提条件是需要下载Camunda的的源代码,笔者以Camunda 7.16为例.
打开https://github.com/camunda/camunda-bpm-platform, 然后点击Tags,选择7.16.0的代码 - 代码下载下来后,解压缩并找到webapp目录,导入到代码编辑器
3.参考《[4]深入浅出工作开源框架Camunda: 开启工作流的授权功能》 下载打好包可以直接运行的Camunda 7.16的版本。打开start.bat(或者start.sh)并修改其启动命令,支持远程Debug
REM start the application
call %JAVA% -Xdebug -Xrunjdwp:transport=dt_socket,suspend=n,server=y,address=5555
-Dloader.path="%classPath%"
-Dcamunda.deploymentDir="%deploymentDir%" %JAVA_OPTS%
-jar "%BASEDIR%internal\camunda-bpm-run-core.jar"
--spring.config.location=file:"%configuration%"
关键字是
-Xdebug -Xrunjdwp:transport=dt_socket,suspend=n,server=y,address=5555
并启动Camunda的远程运行环境。
- 因为上面的第2步已经把代码导入进来,那么可以把代码远程Debug的监听启动起来。
- 打开浏览器,输入http://127.0.0.1:8080/camunda/app/welcome/default/#!/login
并输入用户名和密码 - 恭喜你!远程debug进入预先的代码断点里面。
更多推荐
所有评论(0)