Eclipse remote debugging weblogic

This article records the remote debugging configuration of weblogic10.3.6

 

1. Settings under Windows

1.进入域目录下的bin目录,例如:base_domain/bin

2.找到setDomainEnv.sh文件

3.用文本编辑器打开(我用的是notepad++)查找关键字“debugFlag”,会看到
if [ "${debugFlag}" = "true" ] ; then
  4.在这句话上面加上
set debugFlag=true
  5.重启weblogic服务,就可以在启动窗口看到
Listening for transport dt_socket at address: 8453
  表示可以通过8453端口来远程调试了 6.如果要修改远程调试端口,也是在这个setDomainEnv.sh文件中查找8453,把这个数字修改为可用端口就好了 

Second, the settings under Linux

Linux下的设置跟windows下基本一样,区别在于要把
set debugFlag=true
  这句代码改为
debugFlag=true
    export debugFlag
  就可以了。 至于端口修改也是和windows一样的。

补充下:
    Linux下要对远程调试端口开放防火墙权限,
    我用的是CentOS7,所以要执行
    
firewall-cmd --permanent --zone=public --add-port=8453/tcp
firewall-cmd --reload

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326854383&siteId=291194637