admin管理员组文章数量:1317906
I have a file that is part of a legacy web site I'm maintaining that I need to debug - step into, etc. But I can't see how to do that. The site needs to be run in IE, in Compatibility mode.
When I run the site from VS (2013) by right-clicking the "http://localhost/..." item beneath the solution and selecting "View in Browser (Internet Explorer" and then hit F12, I see on the Debugger tab the file that has been set as the Default page (the "main" page I see after logging in), but from there I don't see how to open a different file - the one I need to debug.
There are a handful of files apparently available for selection beneath the folder icon:
...but not the one I need. If I enter its name in the search box, I get, "No results found." It is beneath a pages folder, but so are those that are displayed. What makes them special? Why can I select those undesirables, but cannot select the only page I care about?
I have a file that is part of a legacy web site I'm maintaining that I need to debug - step into, etc. But I can't see how to do that. The site needs to be run in IE, in Compatibility mode.
When I run the site from VS (2013) by right-clicking the "http://localhost/..." item beneath the solution and selecting "View in Browser (Internet Explorer" and then hit F12, I see on the Debugger tab the file that has been set as the Default page (the "main" page I see after logging in), but from there I don't see how to open a different file - the one I need to debug.
There are a handful of files apparently available for selection beneath the folder icon:
...but not the one I need. If I enter its name in the search box, I get, "No results found." It is beneath a pages folder, but so are those that are displayed. What makes them special? Why can I select those undesirables, but cannot select the only page I care about?
Share Improve this question edited Mar 14, 2017 at 21:06 Andrii Litvinov 13.2k4 gold badges56 silver badges61 bronze badges asked Mar 1, 2017 at 21:53 B. Clay Shannon-B. Crow RavenB. Clay Shannon-B. Crow Raven 10.3k157 gold badges502 silver badges897 bronze badges 6- 1 What is the extension of the file you are trying to view? – NoAlias Commented Mar 8, 2017 at 21:50
- 1 .aspx; it's an ancient ASP.NET (2.0) app/site. – B. Clay Shannon-B. Crow Raven Commented Mar 8, 2017 at 21:55
- Just to be sure, did you load that page in the browser? I don't think it will show unless that ASPX page has been loaded. – NoAlias Commented Mar 8, 2017 at 22:00
- Yes, it is the "live" page when I try to find the source file. – B. Clay Shannon-B. Crow Raven Commented Mar 8, 2017 at 22:03
- Are you trying to debug back-end code of your aspx file? Or some embedded JavaScript code? – Ignas Commented Mar 14, 2017 at 18:45
1 Answer
Reset to default 6 +50I assume you have the JavaScript file you want to debug somewhere in dist. Just go to that file and write debugger;
inside the function you want to debug. The open dev tools in IE and reload the page. Initiate an action that should invoke that function with debugger (if it was not done on page load) and you will be able to debug it.
本文标签: javascriptHow can I locate and debug a specific file in IE11 Dev ToolsStack Overflow
版权声明:本文标题:javascript - How can I locate and debug a specific file in IE11 Dev Tools? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742027109a2415749.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论