首页 > 解决方案 > 在 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;
.
.
.
.
.
.

标签: visual-studiovisual-studio-2017visual-studio-2019visual-studio-debugging

解决方案


推荐阅读