日韩久久久精品,亚洲精品久久久久久久久久久,亚洲欧美一区二区三区国产精品 ,一区二区福利

設(shè)置調(diào)試linux下jdb遠(yuǎn)程調(diào)試tomcat源碼

系統(tǒng) 3506 0

時(shí)間緊張,先記一筆,后續(xù)優(yōu)化與完善。

????在tomcat打開調(diào)試設(shè)置jvm參數(shù)

????

????-Xrunjdwp:transport=dt_socket,server=y,address=9090,suspend=y

????

????在linux命令行jdb連接9090端口

????

????jdb -attach ip:9090 -sourcepath /softwares/apache-tomcat-7.0.40-src/java

????

????設(shè)置斷點(diǎn)

????

????stop at org.apache.tomcat.util.IntrospectionUtils:402 stop at org.apache.tomcat.util.IntrospectionUtils:406 stop at org.apache.tomcat.util.IntrospectionUtils:408 stop at org.apache.tomcat.util.IntrospectionUtils:412

????

????執(zhí)行程序

????

????main[1] run > Set deferred breakpoint org.apache.tomcat.util.IntrospectionUtils:412 Set deferred breakpoint org.apache.tomcat.util.IntrospectionUtils:412 Set deferred breakpoint org.apache.tomcat.util.IntrospectionUtils:408 Unable to set deferred breakpoint org.apache.tomcat.util.IntrospectionUtils:406 : No code at line 406 in org.apache.tomcat.util.IntrospectionUtils Stopping due to deferred breakpoint errors. Set deferred breakpoint org.apache.tomcat.util.IntrospectionUtils:402 Breakpoint hit: Breakpoint hit: "thread=main", org.apache.tomcat.util.IntrospectionUtils.setProperty(), line=412 bci=849 412 ExceptionUtils.handleThrowable(ie.getCause());

????每日一道理
雖然你現(xiàn)在還只是一株稚嫩的幼苗。然而只要堅(jiān)韌不拔,終會成為參天大樹;雖然你現(xiàn)在只是涓涓細(xì)流,然而只要鍥而不舍,終會擁抱大海;雖然你現(xiàn)在只是一只雛鷹,然而只要心存高遠(yuǎn),跌幾個(gè)跟頭之后,終會占有藍(lán)天。

????

????打印變量

????

????main[1] locals Method arguments: o = instance of x.x.x.JNDIRealm(id=1156) name = "connectionPassword" value = "1234" invokeSetProperty = true Local variables: setter = "setConnectionPassword" ie = instance of java.lang.reflect.InvocationTargetException(id=1160) main[1] dump ie.target ie.target = { serialVersionUID: -7034897190745766939 java.lang.Exception.serialVersionUID: -3387516993124229948 java.lang.Throwable.serialVersionUID: -3042686055658047285 java.lang.Throwable.detailMessage: "password decrypt is error!" java.lang.Throwable.cause: instance of java.lang.RuntimeException(id=1163) java.lang.Throwable.stackTrace: null }

????

????打印變量dump信息

????

????main[1] dump ie.target.cause ie.target.cause = { serialVersionUID: -7034897190745766939 java.lang.Exception.serialVersionUID: -3387516993124229948 java.lang.Throwable.serialVersionUID: -3042686055658047285 java.lang.Throwable.detailMessage: "get content from cyberark error" java.lang.Throwable.cause: instance of javapasswordsdk.exceptions.PSDKException(id=1165) java.lang.Throwable.stackTrace: null }

????

????ctrl+c 退出

????

????main[1]

????

文章結(jié)束給大家分享下程序員的一些笑話語錄: 現(xiàn)在社會太數(shù)字化了,所以最好是有一個(gè)集很多功能于一身的設(shè)備!

設(shè)置調(diào)試linux下jdb遠(yuǎn)程調(diào)試tomcat源碼


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯(lián)系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長非常感激您!手機(jī)微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!?。?/p>

發(fā)表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 平湖市| 沙洋县| 吉木乃县| 诏安县| 建昌县| 临澧县| 饶平县| 龙山县| 苗栗市| 泾阳县| 衡山县| 信宜市| 黄浦区| 鹿泉市| 轮台县| 樟树市| 乌拉特后旗| 类乌齐县| 乐平市| 旅游| 正阳县| 奉贤区| 文登市| 青海省| 海安县| 湘阴县| 清新县| 呼图壁县| 富裕县| 鱼台县| 思茅市| 台中县| 科技| 塘沽区| 玉田县| 泸水县| 米泉市| 永兴县| 蓬莱市| 海城市| 海伦市|