[Tutor] Visual studio Code -Python
Mark Lawrence
breamoreboy at gmail.com
Sat Feb 23 19:42:06 EST 2019
On 23/02/2019 12:23, Asad wrote:
Please don't top post, it is so irritating when trying to read threads, TIA.
> Hi All ,
>
> I am using : pdb.set_trace()
>
> can you all share some good tricks i using n ,s , l . The tedious
> part which I see is if it is a loop like for loop then I need to do next
> till the length for the data is completed
>
> for x in string :
> if re.search(x,line)
>
> len(string)
> = 2500
>
> therefore I need to press n 2500 time so that the loop completes and goes
> to another line of code . Any suggestions? how can run the for loop without
> doing n for 2500 times ?
>
Set a breakpoint on the first line after the loop, please see
https://code.visualstudio.com/docs/python/debugging#_invoking-a-breakpoint-in-code
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
More information about the Tutor
mailing list