JDB 사용법
JDB는 자바디버깅 툴이죠~
간단한 사용방법 입니다...
D:\자바프로그래밍\예제>javac -g Emp.java
D:\자바프로그래밍\예제>jdb Emp
Initializing jdb...
> stop at Emp:5
Deferring breakpoint Emp:5.
It will be set after the class is loaded.
> stop at Emp:6
Deferring breakpoint Emp:6.
It will be set after the class is loaded.
> stop at Emp:7
Deferring breakpoint Emp:7.
It will be set after the class is loaded.
> stop at Emp:8
Deferring breakpoint Emp:8.
It will be set after the class is loaded.
> run
run Emp
>
VM Started: Unable to set deferred breakpoint Emp:8 : No code at line 8 in Emp
Stopping due to deferred breakpoint errors.
Set deferred breakpoint Emp:7
Set deferred breakpoint Emp:6
Set deferred breakpoint Emp:5
Breakpoint hit: thread="main", Emp.main(), line=5, bci=14
5 m.gotoOffice();
main[1] next
이종철님 출근하였습니다...
main[1]
Step completed:
Breakpoint hit: thread="main", Emp.main(), line=6, bci=18
6 m.startJob();
main[1] print m.chargeDept
m.chargeDept = "솔루션개발"
main[1] print m.name
m.name = "이종철"
main[1] cont
솔루션개발 이종철님이 일을 시작합니다...
>
Breakpoint hit: thread="main", Emp.main(), line=7, bci=22
7 }
main[1] next
main[1]
The application exited
** help 보는 방법 jdb로 들어간후 help하고 입력하면 간단한 도움말이 나타남.