Eclipseµ÷ÊÔJava´úÂë
Debug͸ÊÓͼ
http://www.cnblogs.com/Jamesliang/archive/2010/01/09/1643188.html
µ±µã»÷Debug°´Å¥Ê±£¬Eclipse»áÌáʾÄã½øÈë Debug͸ÊÓͼ¡£¿ÉÒÔÔÚÓÒÉÏ·½Expressions´°¿Úµã»÷Êó±êÓÒ¼üÔÚµ¯³ö²Ëµ¥ÖÐÑ¡Ôñ Add Watch Expression »òÕßµã»÷ÈçÏÂͼËùʾ°´Å¥Ôò»á³öÏÖ£¬Ìí¼Ó±í´ïʽ´°¿Ú¡£Äã¿ÉÒÔÊäÈëÄãÏë¼àÊӵıí´ïʽ¡£
Display´°¿Ú
ÔÚÉÏÃæµÄÌí¼Ó±í´ïʽ´°¿Ú£¬ËäÈ»¿ÉÒÔÌí¼Ó±í´ïʽ£¬µ«ÊÇÌí¼Ó±í´ïʽËûûÓÐÖÇÄÜÌáʾ¹¦ÄÜ¡£Äã¿ÉÒÔµã»÷ Windows->Show View –>Display ²Ëµ¥´ò¿ªDisplayÊÓͼ¡£ÔÙ´ÎÊÓͼÖе±ÄãÊäÈë±í´ïʽ£¬»áÓÐÖÇÄÜÌáʾ¹¦ÄÜ¡£
Ìõ¼þ¶Ïµã
ÓÐʱÎÒÃÇÐèÒª¶ÏµãÂú×ãijÖÖÌõ¼þÊDzŽøÈë¶Ïµã¡£´ËʱÎÒÃÇ¿ÉÒÔÔÚ ¶Ïµã±ê¼ÇÉϵã»÷Êó±êÓÒ¼ü ÔÚµ¯³ö²Ëµ¥ÉÏ Ñ¡Ôñ Breakpoint Properties ²Ëµ¥£¬ÔڶϵãÊôÐÔ¶Ô»°¿òÖÐ Enable Condition ¸´Ñ¡¿òºó£¬ÊäÈëÐèÒªµÄÌõ¼þ¡£
Òì³£¶Ïµã
µ±ÎÒÃÇÉèÖÃijÖÖÒ쳣ʱµÄ¶Ïµã£¬ÊÇÎÒÃÇ¿ÉÒÔÔÚDebug͸ÊÓÊÓͼÉÏÑ¡ÖÐBreakPoints ÊÓ´°£¬ÔÚÓÒÉϽǵã»÷ Add Java Exception Breakpoint °´Å¥£¬ÔÚµ¯³ö´°¿ÚÖÐÎÒÃÇ¿ÉÒÔÊäÈëÎÒÃÇÐèÒªDebugµÄÒì³£ÀàÐÍ¡£
Ïà¹ØÎĵµ£º
.»ù±¾¸ÅÄîµÄÀí½â
¾ø¶Ô·¾¶£º¾ø¶Ô·¾¶¾ÍÊÇÄãµÄÖ÷Ò³ÉϵÄÎļþ»òĿ¼ÔÚÓ²ÅÌÉÏÕæÕýµÄ·¾¶£¬(URLºÍÎïÀí·¾¶)ÀýÈ磺
C:xyz est.txt ´ú±íÁËtest.txtÎļþµÄ¾ø¶Ô·¾¶¡£http://www.sun.com/index.htmÒ²´ú±íÁËÒ»¸öURL¾ø¶Ô·¾¶¡£
Ïà¶Ô·¾¶£ºÏà¶ÔÓëij¸ö»ù׼Ŀ¼µÄ·¾¶¡£°üº¬WebµÄÏà¶Ô·¾¶£¨HTMLÖеÄÏà¶ÔĿ¼£©£¬ÀýÈ磺ÔÚ
ServletÖ ......
ÔÚ9.10ÖпÉÒÔÔÚÖÕ¶ËÖÐʹÓÃapt-getÃüÁî½øÐа²×°¡£ÕâÖÖ·½·¨±È½Ï¼òµ¥¡£²»¹ý¸öÈËÈÏΪ ¶ÔÓÚ³õѧÕߣ¬»¹ÊÇÊÖ¶¯°²×°±È½ÏºÃ£¬¿ÉÒÔÊìϤºÜ¶à¶«Î÷¡£
1.ÏÂÔØjdkºÍjre
µÇ¼sunÍøÕ¾http://java.sun.com/javase/downloads/index.jsp£¬ÏÂÔØjdk-6u18-linux-i586.binºÍjre-6u18-linux-i586.bin¡£×¢ÒâÔÚ¹ÙÍøÖÐ
ÓÐÁ½¸öÏÂÔصØÖ·£¬Ò»¸öÊÇjdk-6u1 ......
ת×ÔÆäËûÍøÕ¾
ºËÐÄÌáʾ£ºÔÚÐÅϢʱ´ú£¬ÍøÂç¼¼ÊõÓ¦ÓÃÒѾºÜÆÕͨ¡£ÆäÖкܶàÓ¦Óö¼ÒÀÀµÓÚ´ÓÒ»¸öÖ÷»úÏò¶à¸öÖ÷»ú»òÕß´Ó¶à¸öÖ÷»úÏò¶à¸öÖ÷»ú·¢ËÍͬһÐÅÏ¢µÄÄÜÁ¦£¬ÔÚInternet
ÉÏ·Ö·¢µÄÊýÄ¿¿ÉÄÜ´ïÊýÊ®Íǫ̀£¬ÕâЩ¶¼ÐèÒª¸ü¸ßµÄ´ø¿í£¬²¢ÇÒ´ó´ó³¬³öÁ˵¥²¥µÄÄÜÁ¦¡£Ò»ÖÖÄÜ×î´óÏ޶ȵØÀûÓÃÏÖÓдø¿íµÄÖØ
ÔÚÐÅϢʱ´ú£¬ÍøÂç¼¼ÊõÓ¦ÓÃÒѾºÜÆÕÍ ......
package homework03;
import java.util.Scanner;
/*
* ±àдһ¸öÀ࣬¸ÃÀàÓÐÒ»¸ö·½·¨
* public int f£¨int a£¬int b£©{
*
* }
* È»ºó±àдһ¸ö¸ÃÀàµÄ×ÓÀ࣬ҪÇóÖØд·½·¨f()£¬¶øÇÒÖØдµÄ·½·¨½«·µ»ØÁ½¸öÕûÊýµÄ×îС¹«±¶Êý¡£ÒªÇó£º
* ÔÚÖØдµÄ·½·¨µÄ·½·¨ÌåÖÐÊ×Ïȵ÷Óñ»Òþ²ØµÄ·½·¨·µ»ØaºÍbµÄ×î´ó¹«Ô¼Êým,È»ºó½«a*b/m ......
³¢ÊÔÓÃDOM4j½âÎöspringÅäÖÃÎļþʱ,µÚÒ»²½¶ÁÈ¡Îļþʱ£¬»ñȡ·¾¶¾ÍÓöµ½ÁËÎÊÌ⣬¡£¡£¡£¾¹ýgoogleÁËn+log n ´Î¸öÒ³Ã棬²ÅËãÓÐÁ˸ö´ÖdzµÄÈÏʶ£¬ÏÂÃæ¾ÍÈÃÎÒÓüò¶ÌµÄ»°ÓïÀ´×ܽáһϣ¨ºÃÏñÕâ¶Î¾ÍÈ«ÊÇ·Ï»°¡£¡£¡££©¡£¡£¡£
1¡¢springµÄÅäÖÃÎļþ´æ·ÅλÖÃÓÉweb.xmlÀïµÄcontextConfigLocationÀ´È·¶¨£¬Ò»°ãÊÇ·ÅÔÚweb-inf»òÕßÊÇsrc¸ùÄ¿Â¼Ï ......