debugging - How to debug Java EE application using WebLogic 10.3 -
i using weblogic 10.3 java ee application. can please tell me how debug application?
i think other answers wrong. windows, if setup environment variable called debugflag true or in solaris/unix same
debugflag=true export debugflag debug_port=8453 export debug_port , setdomainenv.sh or setdomainenv.cmd going called start wls other scripts. debugflag , debug_port, long "production" flag not set pick right parameters script debugging (-xdebug -xnoagent -xrunjdwp:transport=dt_socket,address=%debug_port%,server=y,suspend=n -djava.compiler=none).
you should not hacking these scripts. it's going make deployment , maintenance hard, entire purpose of setdomainenv script right defaults used , maintained across cluster , throughout entire environment. poorly documented admit.
note, if using oracle weblogic maven plugin, target wls:deploy or wls:start-server pick environment settings when starting because call commands under hood, , in turn first call setdomainenv.
as of right now, if using eclipse , have set oracle weblogicserver, maven plugin not attach debug mode when issue mvn:deploy, can either restart in debug mode (silly), or create 'run ==> debug ==> debugconfigurations ==> remotejavaapplication' connection type of 'standard (socket attach)', host of 'localhost' (or remote server) , port (default me '8453'). can run ==> debug configurations ==> local server attach.
Comments
Post a Comment