Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to force debugger to skip a piece of code?

There is huge amount of code in my project which already debugged 50% of it.
Every time I try to debug it I have to manually set breakpoints after unwanted piece of code to skip it.
Is there a way to tell debugger not to debug that part of code ? Any extension for this ?

Let's face debugger is on line 1500.

Method1(){
   Line 1500 CODE
   Line 1501 CODE
   ...
   Line 1726 CODE
   Line 1727 CODE
   ...
   Line 2200 CODE
}

I won't need to debug lines between 1727 and 2200.

NOTE : It's not just one piece. Otherwise I would be fine with manual breakpoints

like image 577
Mohsen Sarkar Avatar asked Nov 26 '22 23:11

Mohsen Sarkar


1 Answers

Don't know why it's not in the answer but you can set next statement by CTRL+SHIFT+F10 or dragging the yellow arrow to wanted line and code before next statement will not be executed.

Found it here

like image 169
Pawcio Avatar answered Nov 29 '22 11:11

Pawcio