How skip line in Intellij idea debug?

前端 未结 6 1449
借酒劲吻你
借酒劲吻你 2020-12-15 03:30

Suppose I have java code like this (only as Example):

public void someMethod(){
    int a = 3;
    int b = 2; // <-- stay debug here
    a = b + 2;
    Sy         


        
6条回答
  •  有刺的猬
    2020-12-15 04:05

    As stated here by ntotomanov , you can use HotSwap for it. but just adding that i use remote debug to debug my Docker based apps , so if i want this kind of functionality i just comment out the code , and go to Build -> Recompile class or Rebuild Project . then Intellij issues Build & Attempting to HotSwap the code ! in case you did small thing like comment out the code it most of the times always succeeds. happy debugging.

提交回复
热议问题