Manpages
Manpage of jdb
jdb
Section: User Commands (1) Updated: 2000 ǯ 7 ·î 28 ÆüIndex
Return to Main Contents
̾Á°
jdb - Java ¥Ç¥Ð¥Ã¥¬
·Á¼°
jdb
[
options
] [
class
] [
arguments
]
¥Ñ¥é¥á¡¼¥¿
options
¥³¥Þ¥ó¥É¹Ô¥ª¥×¥·¥ç¥ó
class
¥Ç¥Ð¥Ã¥°¤ò³«»Ï¤¹¤ë¥¯¥é¥¹Ì¾
arguments
¥¯¥é¥¹¤Î
main()
¥á¥½¥Ã¥É¤ËÅϤµ¤ì¤ë°ú¿ô
µ¡Ç½ÀâÌÀ
Javatm
¥Ç¥Ð¥Ã¥¬¤Î
jdb
¤Ï¡¢
Java
¥¯¥é¥¹ÍѤÎñ½ã¤Ê¥³¥Þ¥ó¥É¹Ô¥Ç¥Ð¥Ã¥¬¤Ç¤¹¡£
Java Platform Debugger Architecture
¤ò²èÌ̤Ëɽ¼¨¤·¤Ê¤¬¤é¼Â¹Ô¤·¡¢¥í¡¼¥«¥ë¤Þ¤¿¤Ï¥ê¥â¡¼¥È¤Î Java Virtual Machine
¤Î¸¡ºº¤È¥Ç¥Ð¥Ã¥°¤ò¹Ô¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
jdb ¥»¥Ã¥·¥ç¥ó¤Î³«»Ï
jdb ¥»¥Ã¥·¥ç¥ó¤ò³«»Ï¤¹¤ë¤Ë¤Ï¤µ¤Þ¤¶¤Þ¤ÊÊýË¡¤¬¤¢¤ê¤Þ¤¹¡£ ¤â¤Ã¤È¤âÉÑÈˤ˻È
¤ï¤ì¤ë¤Î¤Ï¡¢¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î¥á¥¤¥ó¥¯¥é¥¹¤ò¥Ç¥Ð¥Ã¥°¤·¤Æ¡¢
jdb
¤«¤é¿·¤·¤¯ Java Virtual Machine (VM) ¤òµ¯Æ°¤¹¤ëÊýË¡¤Ç¤¹¡£ ¥³¥Þ¥ó¥É¹Ô¤Ç¡¢
java (1)
¤ÎÂå¤ï¤ê¤Ë
jdb
¥³¥Þ¥ó¥É¤òÆþÎϤ·¤Þ¤¹¡£¤¿¤È¤¨¤Ð¡¢¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î¥á¥¤¥ó¥¯¥é¥¹¤¬
MyClass
¤Î¾ì¹ç¤Ï¡¢¼¡¤Î¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤Æ jdb ´Ä¶¤Ç¥Ç¥Ð¥Ã¥°¤·¤Þ¤¹¡£
example% jdb MyClass
¤³¤Î¤è¤¦¤Ë¤·¤Æµ¯Æ°¤¹¤ë¤È¡¢
jdb
¤Ï 2 ¤ÄÌܤΠJava VM ¤ò¸Æ¤Ó½Ð¤·¡¢»ØÄꤵ¤ì¤¿¥Ñ¥é¥á¡¼¥¿¤òÅϤ·¡¢
»ØÄꤵ¤ì¤¿¥¯¥é¥¹¤ò¥í¡¼¥É¤·¤Þ¤¹¡£¤½¤Î¤¢¤È¡¢
¥¯¥é¥¹¤ÎºÇ½é¤ÎÌ¿Îá¤ò¼Â¹Ô¤¹¤ëÁ°¤Ë VM ¤òÄä»ß¤µ¤»¤Þ¤¹¡£
jdb
¤Î¤â¤¦ 1 ¤Ä¤Î»ÈÍÑÊýË¡¤Ï¡¢¤¹¤Ç¤Ëµ¯Æ°¤·¤Æ¤¤¤ë Java VM ¤Ë
jdb
¤òÀܳ¤¹¤ë¤³¤È¤Ç¤¹¡£
jdb
¤ò»ÈÍѤ·¤Æ¥Ç¥Ð¥Ã¥°¤¹¤ë VM ¤Ï¡¢¼¡¤Î¥ª¥×¥·¥ç¥ó¤ò»ÈÍѤ·¤Æµ¯Æ°¤·¤Ê¤±¤ì
¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
¥ª¥×¥·¥ç¥ó ÌÜŪ
-Xdebug VM Æâ¤Ç¤Î¥Ç¥Ð¥Ã¥°¤Î¥µ¥Ý¡¼¥È¤ò͸ú¤Ë¤¹¤ë
-Xrunjdwp:transport=dt_socket,
server=y,suspend=n
¥×¥í¥»¥¹Æâ¥Ç¥Ð¥Ã¥°¥é¥¤¥Ö¥é¥ê¤ò¥í¡¼¥É¤·¡¢ºîÀ®¤¹¤ëÀܳ¤Î¼ïÎà¤ò»ØÄꤹ¤ë
¤¿¤È¤¨¤Ð¡¢¼¡¤Î¥³¥Þ¥ó¥É¤Ï
MyClass
¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ò¼Â¹Ô¤·¡¢¸å¤Ç
jdb
¤òÀܳ¤Ç¤¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
example% jdb -Xdebug \
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
¼¡¤Î¥³¥Þ¥ó¥É¤Ç
jdb
¤ò VM ¤ËÀܳ¤Ç¤¤Þ¤¹¡£
example% jdb -attach 8000
¤³¤Î¤È¤¡¢
jdb
¤Ï¿·¤·¤¤ VM ¤òµ¯Æ°¤¹¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢´û¸¤Î VM ¤ËÀܳ¤¹¤ë¤Î¤Ç¡¢
jdb
¥³¥Þ¥ó¥É¹Ô¤Ç
MyClass
¤ò»ØÄꤷ¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
¤³¤ì°Ê³°¤Ë¤â¥Ç¥Ð¥Ã¥¬ (jdb) ¤ò VM ¤ËÀܳ¤¹¤ëÊýË¡¤Ï¤¿¤¯¤µ¤ó¤¢¤ê¡¢
jdb
¤Ï¤½¤Î¤¹¤Ù¤Æ¤ÎÊýË¡¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£
¤³¤Î¤è¤¦¤ÊÀܳ¥ª¥×¥·¥ç¥ó¤Ë¤Ä¤¤¤Æ¤Ï¡¢
Java Platform Debugger Architecture ¤Î¥Þ¥Ë¥å¥¢¥ë¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
jdb ´ðËÜ¥³¥Þ¥ó¥É
°Ê²¼¤Ë
jdb
´ðËÜ¥³¥Þ¥ó¥É¤Î°ìÍ÷¤ò¼¨¤·¤Þ¤¹¡£
Java
¥Ç¥Ð¥Ã¥¬¤Ç»ÈÍѲÄǽ¤Ê¤½¤Î¾¤Î¥³¥Þ¥ó¥É¤Ï¡¢
help
¥³¥Þ¥ó¥É¤Çɽ¼¨¤Ç¤¤Þ¤¹¡£
¤Ê¤ª¶É½ê
(¥¹¥¿¥Ã¥¯)
ÊÑ¿ô¤ò¥Ö¥é¥¦¥º¤¹¤ë¤Ë¤Ï¡¢¤½¤Î¥¯¥é¥¹¤¬
javac -g
¥ª¥×¥·¥ç¥ó¤Ç¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
cont
¥Ö¥ì¡¼¥¯¥Ý¥¤¥ó¥È¡¢Îã³°¡¢¤Þ¤¿¤Ï¥¹¥Æ¥Ã¥×¼Â¹Ô¤Î¤¢¤È¤Ç¡¢¥Ç¥Ð¥Ã¥°Ãæ¤Î
¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î¼Â¹Ô¤ò·Ñ³¤·¤Þ¤¹¡£
dump
¥×¥ê¥ß¥Æ¥£¥ÖÃͤξì¹ç¤Ë¤Ï¡¢¤³¤Î¥³¥Þ¥ó¥É¤Ï
print
¤ÈƱ¤¸¤Ç¤¹¡£¥ª¥Ö¥¸¥§¥¯¥È¤Î¾ì¹ç¤Ë¤Ï¡¢¥ª¥Ö¥¸¥§¥¯¥ÈÆâ¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤ë
³Æ¥Õ¥£¡¼¥ë¥É¤Î¸½ºß¤ÎÃͤò½ÐÎϤ·¤Þ¤¹¡£ static ¥Õ¥£¡¼¥ë¥É¤È instance
¥Õ¥£¡¼¥ë¥É¤ò½ÐÎϤ·¤Þ¤¹¡£
dump
¥³¥Þ¥ó¥É¤Ï¡¢
print
¥³¥Þ¥ó¥É¤ÈƱ¤¸¼°¤ò¥µ¥Ý¡¼¥È¤·¤Þ¤¹¡£
help ¤Þ¤¿¤Ï ?
jdb
¤Î¥³¥Þ¥ó¥É¤ÎÃæ¤Ç¤â¤Ã¤È¤â½ÅÍפʤΤ¬¡¢¤³¤Î
help
¥³¥Þ¥ó¥É¤Ç¤¹¡£ÍøÍѲÄǽ¤Ê¥³¥Þ¥ó¥É¤Î°ìÍ÷¤ò¡¢
³Æ¥³¥Þ¥ó¥É¤Î´Êñ¤ÊÀâÌÀ¤Ä¤¤Çɽ¼¨¤·¤Þ¤¹¡£
print
Java ¥ª¥Ö¥¸¥§¥¯¥È¤ª¤è¤Ó¥×¥ê¥ß¥Æ¥£¥ÖÃͤòɽ¼¨¤·¤Þ¤¹¡£ ¥×¥ê¥ß¥Æ¥£¥Ö·¿¤ÎÊÑ¿ô
¤Þ¤¿¤Ï¥Õ¥£¡¼¥ë¥É¤Î¾ì¹ç¤Ë¤Ï¡¢¼ÂºÝ¤ÎÃͤò½ÐÎϤ·¤Þ¤¹¡£ ¥ª¥Ö¥¸¥§¥¯¥È¤Î¾ì¹ç
¤Ë¤Ï¡¢Ã»¤¤ÀâÌÀ¤ò½ÐÎϤ·¤Þ¤¹¡£ ¥ª¥Ö¥¸¥§¥¯¥È¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê¹ß¤Î
dump
¥³¥Þ¥ó¥É¤ÎÀâÌÀ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
print
¤Ï¡¢¥á¥½¥Ã¥É¤Î¸Æ¤Ó½Ð¤·¤ò´Þ¤à¿¿ô¤Î´Êñ¤Ê Java ¼°¤ò¥µ¥Ý¡¼¥È¤·¤Þ¤¹¡£
¼¡¤ËÎã¤ò¼¨¤·¤Þ¤¹¡£
*
print MyClass.myStaticField
*
print myObj.myInstanceField
*
print i + j + k (
i¡¢
j ¡¢
¤ª¤è¤Ó
k
¤Ï¥×¥ê¥ß¥Æ¥£¥Ö¤Ç¤¢¤ê¡¢¥Õ¥£¡¼¥ë¥É¤Þ¤¿¤Ï¶É½êÊÑ¿ô¤Î¤¤¤º¤ì¤«)
*
print myObj.myMethod() (
myMethod
¤¬ null °Ê³°¤òÊÖ¤¹¾ì¹ç)
*
print new java.lang.String(Hello).length()
thread
¸½ºß¤Î¥¹¥ì¥Ã¥É¤òÁªÂò¤·¤Þ¤¹¡£ ¿¤¯¤Î
jdb
¥³¥Þ¥ó¥É¤Ï¡¢¸½ºß¤Î¥¹¥ì¥Ã¥É¤ÎÀßÄê¤Ë´ð¤Å¤¤¤Æ¼Â¹Ô¤µ¤ì¤Þ¤¹¡£ ¥¹¥ì¥Ã¥É¤Ï¡¢
threads
¥³¥Þ¥ó¥É¤ÇÀâÌÀ¤¹¤ë¥¹¥ì¥Ã¥É¥¤¥ó¥Ç¥Ã¥¯¥¹¤È¤È¤â¤Ë»ØÄꤷ¤Þ¤¹¡£
threads
¸½ºß¼Â¹ÔÃæ¤Î¥¹¥ì¥Ã¥É¤ò°ìÍ÷ɽ¼¨¤·¤Þ¤¹¡£¥¹¥ì¥Ã¥É¤´¤È¤Ë¡¢Ì¾Á°¤È¸½ºß¤Î¾õÂÖ¡¢
¤ª¤è¤Ó¤Û¤«¤Î¥³¥Þ¥ó¥É¤Ë»ÈÍѤǤ¤ë¥¤¥ó¥Ç¥Ã¥¯¥¹¤ò½ÐÎϤ·¤Þ¤¹¡£¼¡¤ËÎã¤ò
¼¨¤·¤Þ¤¹¡£
4. (java.lang.Thread)0x1 main running
¤³¤ÎÎã¤Ç¤Ï¡¢¥¹¥ì¥Ã¥É¥¤¥ó¥Ç¥Ã¥¯¥¹¤Ï
4
¤Ç¤¢¤ê¡¢¥¹¥ì¥Ã¥É¤Ï
java.lang.Thread
¤Î¥¤¥ó¥¹¥¿¥ó¥¹¤Ç¤¹¡£¥¹¥ì¥Ã¥É¤Î̾Á°¤Ï¡Ö
main
¡×¤Ç¤¢¤ê¡¢¸½ºß¼Â¹ÔÃæ¤Ç¤¹¡£
run
jdb
¤òµ¯Æ°¤·¤ÆɬÍפʥ֥졼¥¯¥Ý¥¤¥ó¥È¤òÀßÄꤷ¤¿¤¢¤È¤Ë¡¢¤³¤Î¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤Æ¡¢
¥Ç¥Ð¥Ã¥°¤¹¤ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î¼Â¹Ô¤ò³«»Ï¤·¤Þ¤¹¡£¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢
¥Ç¥Ð¥Ã¥°¤¹¤ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ò
jdb
¤«¤éµ¯Æ°¤¹¤ë¤È¤¤Ë¤À¤±»ÈÍѤǤ¤Þ¤¹¡£
´û¸¤Î VM ¤ËÀܳ¤¹¤ë¾ì¹ç¤È¤Ï°Û¤Ê¤ê¤Þ¤¹¡£
where
°ú¿ô¤Î¤Ê¤¤
where
¥³¥Þ¥ó¥É¤Ï¡¢¸½ºß¤Î¥¹¥ì¥Ã¥É
(
thread
¥³¥Þ¥ó¥É¤ÇÀßÄê)
¤Î¥¹¥¿¥Ã¥¯¤ò¥À¥ó¥×¤·¤Þ¤¹¡£
where all
¤È»ØÄꤹ¤ë¤È¡¢¸½ºß¤Î¥¹¥ì¥Ã¥É¥°¥ë¡¼¥×¤Ë¤¢¤ëÁ´¥¹¥ì¥Ã¥É¤Î
¥¹¥¿¥Ã¥¯¤ò¥À¥ó¥×¤·¤Þ¤¹¡£
where threadindex
¤È»ØÄꤹ¤ë¤È¡¢
threadindex
¤¬¼¨¤¹¥¹¥ì¥Ã¥É¤Î¥¹¥¿¥Ã¥¯¤À¤±¤ò¥À¥ó¥×¤·¤Þ¤¹¡£
¸½ºß¤Î¥¹¥ì¥Ã¥É¤¬ (¥Ö¥ì¡¼¥¯¥Ý¥¤¥ó¥È¤Ê¤É¤Î¥¤¥Ù¥ó¥È¤ä
suspend
¥³¥Þ¥ó¥É¤Ç) ÃæÃǤ·¤Æ¤¤¤ë¾ì¹ç¡¢
print
¥³¥Þ¥ó¥É¤ä
dump
¥³¥Þ¥ó¥É¤ò»ÈÍѤ¹¤ì¤Ð¡¢¶É½êÊÑ¿ô¤ä¥Õ¥£¡¼¥ë¥É¤òɽ¼¨¤Ç¤¤Þ¤¹¡£
¤É¤Î¥¹¥¿¥Ã¥¯¥Õ¥ì¡¼¥à¤ò¸½ºß¤Î¥Õ¥ì¡¼¥à¤Ë¤¹¤ë¤«¤Ï¡¢
up
¤ª¤è¤Ó
down
¥³¥Þ¥ó¥É¤ÇÁªÂò¤Ç¤¤Þ¤¹¡£
¥Ö¥ì¡¼¥¯¥Ý¥¤¥ó¥ÈÍÑ¥³¥Þ¥ó¥É
jdb
¤Ç¤Ï¡¢¥Ö¥ì¡¼¥¯¥Ý¥¤¥ó¥È¤ò¹ÔÈÖ¹æ¤Ç¡¢
¤Þ¤¿¤Ï¥á¥½¥Ã¥É¤ÎºÇ½é¤ÎÌ¿Îá¤Ç
ÀßÄê¤Ç¤¤Þ¤¹¡£¼¡¤ËÎã¤ò¼¨¤·¤Þ¤¹¡£
stop at MyClass:22
MyClass
¤¬´Þ¤Þ¤ì¤ë¥½¡¼¥¹¥Õ¥¡¥¤¥ë¤Î
22
¹ÔÌܤκǽé¤ÎÌ¿Îá¤Ë¥Ö¥ì¡¼¥¯¥Ý¥¤¥ó¥È¤òÀßÄꤹ¤ë
stop in java.lang.String.length
java.lang.String.length
¥á¥½¥Ã¥É¤ÎºÇ½é¤Ë¥Ö¥ì¡¼¥¯¥Ý¥¤¥ó¥È¤òÀßÄꤹ¤ë
stop in MyClass. init
init
¤Ï
MyClass
¥³¥ó¥¹¥È¥é¥¯¥¿¤ò¼±Ê̤¹¤ë
stop in MyClass. clinit
clinit
¤Ï
MyClass
¤ÎÀÅŪ¤Ê½é´ü²½¥³¡¼¥É¤ò¼±Ê̤¹¤ë
¥á¥½¥Ã¥É¤¬¥ª¡¼¥Ð¡¼¥í¡¼¥É¤µ¤ì¤ë¾ì¹ç¤Ë¤Ï¡¢¥á¥½¥Ã¥É¤Î°ú¿ô¤Î·¿¤â»ØÄꤷ¤Æ¡¢
¥Ö¥ì¡¼¥¯¥Ý¥¤¥ó¥È¤ËÂФ·¤ÆŬÀڤʥ᥽¥Ã¥É¤¬ÁªÂò¤µ¤ì¤ë¤è¤¦¤Ë¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»
¤ó¡£ ¤¿¤È¤¨¤Ð¡¢¼¡¤Î¤è¤¦¤Ë»ØÄꤷ¤Þ¤¹¡£
MyClass.myMethod(int,java.lang.String)
¤Þ¤¿¤Ï
MyClass.myMethod()
clear
¥³¥Þ¥ó¥É¤Ï¡¢¡Ö
clear MyClass:45
¡×¤Î¤è¤¦¤Ê¹½Ê¸¤ò»ÈÍѤ·¤Æ¥Ö¥ì¡¼¥¯¥Ý¥¤¥ó¥È¤òºï½ü¤·¤Þ¤¹¡£
°ú¿ô¤ò»ØÄꤷ¤Ê¤¤¤Ç
clear
¥³¥Þ¥ó¥É¤ò»ÈÍѤ¹¤ë¤È¡¢¸½ºßÀßÄꤵ¤ì¤Æ¤¤
¤ë¤¹¤Ù¤Æ¤Î¥Ö¥ì¡¼¥¯¥Ý¥¤¥ó¥È¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£
cont
¥³¥Þ¥ó¥É¤Ç¼Â¹Ô¤¬·Ñ³¤·¤Þ¤¹¡£
¥³¥Þ¥ó¥É¤Î¥¹¥Æ¥Ã¥×¼Â¹Ô
step
¥³¥Þ¥ó¥É¤Ï¡¢¸½ºß¤Î¥¹¥¿¥Ã¥¯¥Õ¥ì¡¼¥à¤Þ¤¿¤Ï¸Æ¤Ó½Ð¤µ¤ì¤¿¥á¥½¥Ã¥ÉÆâ¤Ç¡¢
¼¡¤Î¹Ô¤ò¼Â¹Ô¤·¤Þ¤¹¡£
next
¥³¥Þ¥ó¥É¤Ï¡¢¸½ºß¤Î¥¹¥¿¥Ã¥¯¥Õ¥ì¡¼¥à¤Î¼¡¤Î¹Ô¤ò
¼Â¹Ô¤·¤Þ¤¹¡£
Îã³°½èÍýÍÑ¥³¥Þ¥ó¥É
¥¹¥í¡¼¤·¤Æ¤¤¤ë¥¹¥ì¥Ã¥É¤Î¸Æ¤Ó½Ð¤·¥¹¥¿¥Ã¥¯¾å¤Î¤É¤³¤Ë¤â catch ʸ¤¬¤Ê¤¤¤è¤¦¤Ê
Îã³°¤¬È¯À¸¤¹¤ë¤È¡¢VM ¤ÏÄ̾Îã³°¥È¥ì¡¼¥¹¤ò½ÐÎϤ·¤Æ½ªÎ»¤·¤Þ¤¹¡£ ¤¿¤À¤·¡¢
jdb
´Ä¶¤Ç¼Â¹Ô¤·¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¤³¤Î¤è¤¦¤ÊÎã³°¤¬È¯À¸¤¹¤ë¤È
jdb
¤ËÀ©¸æ¤¬Ìá¤ê¤Þ¤¹¡£ ¼¡¤Ë¡¢
jdb
¤ò»ÈÍѤ·¤ÆÎã³°¤Î¸¶°ø¤ò¿ÇÃǤ·¤Þ¤¹¡£
catch
¥Ç¥Ð¥Ã¥°Ãæ¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ï¾¤ÎÎã³°¤¬¥¹¥í¡¼¤µ¤ì¤¿¤È¤³¤í¤ÇÄä»ß¤·¤Þ¤¹¡£
¼¡¤ËÎã¤ò¼¨¤·¤Þ¤¹¡£
catch java.io.FileNotFoundException
¤Þ¤¿¤Ï
catch mypackage.BigTroubleException
Îã³°¤¬»ØÄꤷ¤¿¥¯¥é¥¹ (¤Þ¤¿¤Ï¡¢¥µ¥Ö¥¯¥é¥¹) ¤Î¥¤¥ó¥¹¥¿¥ó¥¹¤Ç¤¢¤ë¾ì¹ç¡¢
¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ï¥¹¥í¡¼¤µ¤ì¤¿¤È¤³¤í¤ÇÄä»ß¤·¤Þ¤¹¡£
ignore
°ÊÁ°¤Î
catch
¥³¥Þ¥ó¥É¤Î¸ú²Ì¤ò̵¸ú¤Ë¤·¤Þ¤¹¡£¤Ê¤ª¡¢¤³¤Î»ØÄê¤Ë¤è¤Ã¤ÆÎã³°¤ò̵»ë¤¹¤ë¤Î¤Ï
¥Ç¥Ð¥Ã¥¬¤À¤±¤Ç¤¢¤ê¡¢¥Ç¥Ð¥Ã¥°¤µ¤ì¤¿ VM ¤Ï̵»ë¤·¤Þ¤»¤ó¡£
¥ª¥×¥·¥ç¥ó
¥³¥Þ¥ó¥É¹Ô¤Ç Java ¥¢¥×¥ê¥±¡¼¥·¥ç¥óµ¯Æ°¥Ä¡¼¥ë¤ÎÂå¤ï¤ê¤Ë
jdb
¤ò»ÈÍѤ¹¤ë¾ì¹ç¡¢
jdb
¤Ï¡¢
-D¡¢
-classpath¡¢
-X option ¤Ê¤É¡¢
java (1)
¥³¥Þ¥ó¥É¤ÈƱ¤¸¥ª¥×¥·¥ç¥ó¤ò¿¿ô»ÈÍѤǤ¤Þ¤¹¡£
jdb
¤Ï¡¢¤½¤Î¤Û¤«¤Ë¼¡¤Î¥ª¥×¥·¥ç¥ó¤â»ÈÍѤǤ¤Þ¤¹¡£
-sourcepath dir1 :dir2 :...
»ØÄꤵ¤ì¤¿¥Ñ¥¹¤Ç¡¢¥½¡¼¥¹¥Õ¥¡¥¤¥ë¤ò¸¡º÷¤·¤Þ¤¹¡£ ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬
»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¥Ñ¥¹¤Î¡Ö.¡×¤ò¸¡º÷¤·¤Þ¤¹¡£
-attach address
¥Ç¥Õ¥©¥ë¥È¤ÎÀܳµ¡¹½¤ò»ÈÍѤ·¤Æ¡¢¤¹¤Ç¤Ë¼Â¹ÔÃæ¤Î VM ¤Ë¥Ç¥Ð¥Ã¥¬¤òÀܳ
¤·¤Þ¤¹¡£
-launch
¥Ç¥Ð¥Ã¥°¤¹¤ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ò
jdb
¤Îµ¯Æ°¸å¤¿¤À¤Á¤Ëµ¯Æ°¤·¤Þ¤¹¡£ ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»ÈÍѤ¹¤ë¤È¡¢
run
¥³¥Þ¥ó¥É¤ò»ÈÍѤ¹¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£ ¥Ç¥Ð¥Ã¥°¤¹¤ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ï¡¢
µ¯Æ°¸å¡¢ºÇ½é¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¥¯¥é¥¹¤¬¥í¡¼¥É¤µ¤ì¤ëľÁ°¤ËÄä»ß¤·¤Þ¤¹¡£
¤½¤Î»þÅÀ¤Ç¡¢É¬Íפʥ֥졼¥¯¥Ý¥¤¥ó¥È¤òÀßÄê¤Ç¤¤Þ¤¹¡£
¼Â¹Ô¤ò·Ñ³¤¹¤ë¤Ë¤Ï
cont
¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤Þ¤¹¡£
¤³¤ì°Ê³°¤Ë¤â¡¢¥Ç¥Ð¥Ã¥¬¤ò¥Ç¥Ð¥Ã¥°¤µ¤ì¤ë VM ¤ËÀܳ¤¹¤ë¤¿¤á¤ÎÂåÂص¡¹½
ÍѤΥª¥×¥·¥ç¥ó¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤³¤Î¤è¤¦¤ÊÀܳ¤ÎÂåÂص¡¹½¤Ë¤Ä¤¤¤Æ¤Ï¡¢
Java Platform Debugger Architecture ¤Î¥Þ¥Ë¥å¥¢¥ë¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
´ØÏ¢¹àÌÜ
java (1)¡¢
javac (1)¡¢
javadoc (1)¡¢
javah (1)¡¢
javap (1)
¼¡¤Ë¤Ä¤¤¤Æ¤Ï¡¢
java.sun.com
¤ò»²¾È¤Þ¤¿¤Ï¸¡º÷¤·¤Æ¤¯¤À¤µ¤¤¡£
Java Language Debugging @
http://java.sun.com/j2se/1.3/debugging/index.html
Index
̾Á°
·Á¼°
¥Ñ¥é¥á¡¼¥¿
µ¡Ç½ÀâÌÀ
jdb ¥»¥Ã¥·¥ç¥ó¤Î³«»Ï
jdb ´ðËÜ¥³¥Þ¥ó¥É
¥Ö¥ì¡¼¥¯¥Ý¥¤¥ó¥ÈÍÑ¥³¥Þ¥ó¥É
¥³¥Þ¥ó¥É¤Î¥¹¥Æ¥Ã¥×¼Â¹Ô
Îã³°½èÍýÍÑ¥³¥Þ¥ó¥É
¥ª¥×¥·¥ç¥ó
´ØÏ¢¹àÌÜ
This document was created by
man2html ,
using the manual pages.
Time: 02:55:55 GMT, November 05, 2024