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

設置調試linux下jdb遠程調試tomcat源碼

系統 3231 0

時間緊張,先記一筆,后續優化與完善。

????在tomcat打開調試設置jvm參數

????

????-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

????

????設置斷點

????

????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

????

????執行程序

????

????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());

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

????

????打印變量

????

????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]

????

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

設置調試linux下jdb遠程調試tomcat源碼


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

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

【本文對您有幫助就好】

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

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 元朗区| 濮阳县| 垫江县| 崇阳县| 二连浩特市| 岳普湖县| 彝良县| 库尔勒市| 延安市| 安义县| 扎鲁特旗| 武川县| 美姑县| 会东县| 溧阳市| 林周县| 伊川县| 崇文区| 桐梓县| 宁蒗| 徐水县| 横峰县| 皋兰县| 开原市| 兴城市| 常熟市| 北票市| 抚宁县| 福安市| 连城县| 保德县| 敖汉旗| 彰化县| 疏勒县| 荃湾区| 大竹县| 怀宁县| 双辽市| 望城县| 广昌县| 息烽县|