Multi-Threaded Debuggerãå°å³ã«ã¹ã´ãã¦æ³£ãã
この前ãã®ç´¹ä»è¨äºè¦ã¤ãããã§ï¼ãããçä¼¼ããªããå®éåããã¦ã¿ããきしださんの例ãã¡ããã©ããã£ãã®ã§ï¼ãããé¡æã«ãã¦ã¿ããã
Runner#run()ã®é©å½ãªã¨ããã«ãã¬ã¤ã¯ãã¤ã³ãä»è¾¼ãã§ãããã¬ãèµ·åãããããã¨ã¹ã¬ãããã¨ã«åãå ´æã§æ¢ã¾ããã§ï¼ãããªå
·åã«æãã¦ãããï¼ãã®æç¹ã§ãã§ã«ã¹ã´ã¤ï¼ã
é©å½ãªã¹ã¬ããé¸ãã§ã¹ãããå®è¡ã¨ããããããªãã ãï¼ã¹ã¬ããã®ä¸è¦§ã表示ããã¦ãããã§ï¼ã©ãã ãã¹ã¬ãããèµ·ãã¦ãã¨ãï¼ã©ã®ã¹ã¬ãããæ¢ã¾ã£ã¦ãã¨ã丸åãããããã«ã¹ã¬ããä¸è¦§ã®å³ç«¯ã«ã¯ï¼ã¹ã¬ããã®åæ¢ã»åéãã¿ã³ãä»ãã¦ããã®ã§ï¼èå³ãªãã¹ã¬ããã¯å
ãã£ã¦ã¦ã¿ãããªãã¨ãã§ããï¼ã¹ã´ã¤ããï¼ã
ããã«ãã¡æ¼ããªã®ãï¼ã¹ãããå®è¡ä¸ã«ä»ã®ã¹ã¬ãããã©ãã§åæ¢ãã¦ããããè¦ããï¼ï¼ï¼è¶
ã¹ã²ãï¼
ç·è²ã®ç¢å°ï¼ãã¤ã©ã¤ãè¡ãç¾ã¹ã¬ããã®å®è¡ä½ç½®ã§ï¼æ¯è»ã¢ã¤ã³ã³ãä»ã®ã¹ã¬ããã®å®è¡ä½ç½®ï¼åæ¢ä½ç½®ï¼ï¼ã示ãã¦ãã¯ã±ããã§ãã£ã¦ï¼ãã®æ¯è»ã¯ãªãã¯ããã¨ï¼å®è¡ã¹ã¬ãããåãæ¿ãããã¨ãã§ããã
ãã¼ãï¼å°å³ã«ã¹ã´ãããï¼NetBeans
IntelliJã§åãäºãã£ã¦ãããªããªããã©ï¼ä½¿ãåæã¯ã¾ã£ããåã³ã¾ããã§ããããããã ããï¼NetBeansã¯ä¾®ããªãã®ã ã
ãã«ãã¹ã¬ããã¾ããã«æ³¨åãã¦ããããã«ï¼GUIã®å¾©æ¨©çã£ã¦ãï¼çãªæ·±èªã¿ããã¦ãã¾ããã ãã©ï¼èãéãããããã:-)
(追è¨) ãµã¼ããµã¤ãã§ãæå¹ãã©ãã試ãã¦ã¿ããNetBeansãã³ãã«ã®Tomcatã§è©¦ãããã©ï¼ãµã¼ãã¬ããã¯ãããJSPã§ããMulti-Threaded Debugã§ããï¼å½ããåãï¼ã
ããã¼ã£ï¼ããããããã¹ã¯ãªããã¬ããå
¨éãªã¬ã¬ã·ã¼J2EEã¢ããªã®ãããã°æ¥½ã«ãªãããï¼ï¼ã¨ãã£ã¦æã£ããã©ï¼ããã ãå¤ãã¨JVMã1.4以åã§JPDAãããªããããã¡ãªãã ããªã
ï¼ã£ã¦åæã«JVMTI使ã£ã¦ãããã ã¨æ±ºãã¤ãã¦ããã©ï¼ãã®èªèã§åã£ã¦ãããï¼