Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

set breakpoints to trigger after execution

I'm using visual studio 2012. The problem is when I use breakpoints to debug my code and set specific lines to break on, the breakpoint breaks on the line, but before the line is executed. I need the line to get executed and then break on the line (post execution), so I can see the values assigned, otherwise now I have to add extra line after every breakpoint and break on that line. Any suggestions? Thanks!

like image 885
Kristian Avatar asked Jul 19 '26 18:07

Kristian


2 Answers

Set the breakpoint and when VS is there just press F11 :D

like image 161
a-ctor Avatar answered Jul 22 '26 08:07

a-ctor


Add the break point to the line you are currently breaking and when the execution breaks on that unexecuted line, hit F10. It will execute that line and will still be on break.

like image 43
Giannis Paraskevopoulos Avatar answered Jul 22 '26 09:07

Giannis Paraskevopoulos



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!