问题
I'm trying to debug JavaScript from a page of a website, which could be different depending on a parameter given in the url.
When I call the page example.aspx
, the URL may contain parameters like example.aspx?id=[id_here]
Depending on the id parameter, the codebehind file get the information to fill the objects fields and generate different JavaScript blocks in the aspx to display them.
When accessing the page with two different id's, I would like to launch simultaneously two sessions of the debugger, attached each to the corresponding window, to spot differences, step by step.
The problem is when the debugger of one of the page pauses, the other page loading is also paused, then I can't follow simultaneously the normal flow of the two pages to spot when the treatment changes.
And I can't open the page with two different browsers, because i'll lose the session.
Is it possible to do it this way, with any debugger, or do I need to process in an other way?
I will be grateful for any response
回答1:
Did you try with 2 tabs in IE? This doesn't work in Chrome (the debugger blocks the other tab as well) but I'm able to debug separately in IE 11.
来源:https://stackoverflow.com/questions/26254473/is-it-possible-to-launch-multiple-js-debugger-independant-sessions-in-a-browser