This is a well-known JDK bug which causes the debugger to hang in Sun ONE Studio 4. If you insist on using S1S4, I suggest you downgrade your JDK to 1.3.
However, I recommend that you try the latest version of the IDE, Sun ONE Studio 5 which supports JDK 1.4.1_02 and above.
Regards,
christina