0

vscodeでWebアプリケーションをデバッグしようとしています。 framework angular.jsクロムエクステンションのデバッグをダウンロードしましたが、デバッグコンソールでプログラムを起動するとエラーが表示されます。SourceMaps.loadSourceMapContents:https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js.mapからソースマップをダウンロードできませんでした

SourceMaps.loadSourceMapContents: Could not download sourcemap from https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js.map 

マイファイルlaunch.json:

{ 
    "version": "0.2.0", 
    "configurations": [ 
     { 
      "name": "Launch Chrome against localhost", 
      "type": "chrome", 
      "request": "launch", 
      "url": "http://localhost/index.html", 
      "webRoot": "${workspaceRoot}" 
     }, 
     { 
      "name": "Attach to Chrome", 
      "type": "chrome", 
      "request": "attach", 
      "port": 9222, 
      "webRoot": "${workspaceRoot}" 
     } 
    ] 
} 

私のhtmlコードコールangular.min-JS:

<head> 
    <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> 
    <script src="../js/todo.js"></script> 

    <link rel="stylesheet" href="../css/todo.css"> 
    </head> 

ウェブアプリは、IISのローカルホストです。これを解決するための提案はありますか?角度アプリをデバッグしてウェブアプリを構築する別の方法があります。

+0

、あなたは、角度の非縮小さバージョンを試みることができる:angular.js' 'と' angular.min.js'を交換してください。 – rsanchez

答えて

0

私はフォローの段階でこの問題を解決していますhttps://angularjs.org/

  • 参照から

    1. ダウンロード元ファイルSRC = "../ JS/angular.min.js"
    2. 変更などのソースlaunch.jsonの "webRoot"/JS /ここにはjavascriptsファイルが保存されています。

    回避策としてlaunch.json

    { 
        "version": "0.2.0", 
        "configurations": [ 
    
         { 
          "name": "Launch Chrome against localhost", 
          "type": "chrome", 
          "request": "launch", 
          "url": "http://localhost/index.html", 
          "webRoot": "${workspaceRoot}/JS/" 
          ,"diagnosticLogging": true, 
          "sourceMaps": true 
         }, 
         { 
          "name": "Attach to Chrome", 
          "type": "chrome", 
          "request": "attach", 
          "port": 9222, 
          "webRoot": "${workspaceRoot}/JS/", 
          "sourceMaps": true 
    
         } 
        ] 
    } 
    
  • 関連する問題