I have 40-50 methods in a class, I want to add breakpoints to all of them. Can I add breakpoints to all of them at once?
I have 40-50 methods in a class, I want to add breakpoints to all of them. Can I add breakpoints to all of them at once?
If you use vim (vsvim) you can manipulate breakpoints fairly easily. Here are some examples.
break on every line:{Escape}qq:vsc Debug.ToggleBreakpoint{Enter}jq100@q
break on every method:
{Escape}qq:vsc Edit.NextMethod{Enter}:vsc Debug.ToggleBreakpoint{Enter}jq100@q
replace the 100 with the appropriate number of lines/methods.
example: https://imgur.com/SFhlEr7
Click on Debug tab and select "Debug All". Then call the method/controller/function that you want debugging and step through it with debuger (not continue, unless you have breakpoints set).