Debugging a java jar file -
i have jar file , don't have source. should connect server. doesn't run @ first time , need run second time. trying find way it's logs. how can enable it's logs?
here how call it
java -xms512m -xmx512m -jar mcon.jar
i have found , tried code below think server sockets
java -xdebug -xrunjdwp:server=y,transport=dt_socket,address=4000,suspend=n -jar mcon.jar
what found correct not need address , remote debugging connect server
from command line , need is
java -agentlib:jdwp=transport=dt_shmem,address=jdbconn,server=y,suspend=n -jar mcon.jar
then can connect java debugger
jdb -attach jdbconn
you can refer doc find out command can use
Comments
Post a Comment