Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 1.07 KB

File metadata and controls

20 lines (13 loc) · 1.07 KB

Java Debug Hack Practice

Material

A tutorial of debug hacks.
Link: Java Debug Hacks (CHN)
The code to practice with: code repo

Objectives

Objective A

Practice adding watchpoint, modifying variable, conditional breakpoint, switching threads. Note that if you are debugging the multithreaded version of code, you should combine conditional breakpoint and thread switching together. This will help you get an experience of thread execution.

Objective B

Answer: in function quickMultiply, what does a CyclicBarrier serve for? Why the barrier value is 5 instead of 4? What's the consequence of changing it into 4?

Submission

For Objective A, you are expected to make a screenshot for each debug hack, and give a short explanation of your purpose for each one.
For both objectives, you can write them into a single document or two(doc, docx, pdf, markdown). Append your document(s) to your "Doubly-linked list" homework.