visual-studio - 在 VS 2017/2019 中调试与受人尊敬的 .ascx 关联的 javascript 文件
问题描述
我有 ASP.NET 网站,而不是 Web 应用程序,并且它没有 bin\debug 目录。
我的项目结构如下:
我正在尝试调试与 .ascx 控制器关联的 .js 文件,但无法调试它们。我总是看到错误the breakpoint set but not yet bound
。我已经尝试了 StackOverflow 上的几乎所有解决方案,例如干净重建,然后在工具下启用\禁用调试,但到目前为止没有任何效果。
示例 .ascx 看起来像
<eui:control id="contextAdministrator" codefile="/usercontrols/applications/administration/contextAdministrator.js" namespace="contextAdministrator" tabtitle="General">
<input id="AccessibilityDetails" type="hidden" size="20" name="AccessibilityDetails" runat="server" />
示例 .js 文件如下所示:
JSON
{
Main: function() {
var userControlIndexID = UI.ARManager.controls[this.id].userControlIndexID;
var currentContextValue = null;
var initialized = false;
var panels = {};
var maxPages = 15;
.
.
.
.
.
.
解决方案
推荐阅读
- angular - Angular Autocomplete 不适用于来自 JSON 中 API 的动态数据?
- logback - 有没有办法在 LogBack 中更改突出显示颜色模式
- networking - 找到知道MAC地址的IP
- r - expand.grid 和 rep 如何协同工作以显示所有结果组合?
- javascript - JavaScript 函数未在 FormLoad 页面上加载
- python - 将列表作为元素附加到空的 numpy 数组
- python - (python) (selenium) 消息:没有这样的元素:无法找到元素:
- python - 将 Qtable 中的多条记录保存到 Pickle
- plaid - 我可以在格子中为单个银行指定特定帐户,然后只检索这些帐户的数据吗?
- xml - 如果未提供另一个元素,则 XML 验证需要一个元素 - 没有 XSD 1.1