Breakpoint inside asp.net __doPostBack method?

What's the best way to put a "debugger"; inside a __doPostBack method or a way to navigate to a method?

0


source to share


5 answers


You can manually hook into the process iexplore.exe

as a Script debugger and set a breakpoint on the generated page accordingly . Or you can break into the debugger at any time by selecting an option from the menu if you have enabled Script debugging in the "Advanced" tab in the Internet settings



0


source


__ doPastBack still works in javascript browser.

While it is possible to debug javascript using visual studio and IE, if you want to set a breakpoint, you need to open the javascript in visual studio. You can do this for __doPostBack because it is compiler generated.



However, if you are viewing the page in firefox, you can use the firebug extension to set breakpoints in the browser after the page has loaded.

+1


source


In IE, you can go to internet settings -> advanced -> and uncheck "Disable Javascript Debugging". This will allow you to set a breakpoint in your JS code.

0


source


It's actually much easier to use FireBug inside FireFox and you don't have to go through a lot of crap.

0


source


Another option for debugging JS and FireFox (which I use a lot) is to use venkman. You can get it as an FF extension right here.

0


source







All Articles