2014-12-29 201 views
0

我试图配置Webstorm在调试模式下使用chrome扩展jetbrains IDE支持。 我想这个程序https://openui5.hana.ondemand.com/test-resources/sap/m/demokit/poa/index.htmlWebstorm调试不起作用

我下载SDK https://openui5.hana.ondemand.com/test-resources/sap/m/demokit/poa/index.html开始,我采取\test-resources\sap\m\demokit\poa文件夹和webstorm通过导入“从现有文件新建项目...”,然后我选择的这个方案enter image description here

我在Chrome中安装了jetbrains IDE支持插件。现在,如果我运行index.html全部工作正常! 但是,如果我调试我有这个结果的文件...: enter image description here

这是我的索引:

<!DOCTYPE html> 
<html> 
<head> 
    <meta http-equiv="X-UA-Compatible" content="IE=edge" /> 
    <meta charset="UTF-8"> 

    <title>UI5 Boilerplate</title> 

    <!-- UI5 Bootstrap with OpenUI5 --> 
    <script id="sap-ui-bootstrap" 
      type="text/javascript" 
      src="resources/openui/sap-ui-core-dbg.js" 
      data-sap-ui-theme="sap_bluecrystal" 
      data-sap-ui-xx-bindingSyntax="complex" 
      data-sap-ui-libs="sap.m" 
      data-sap-ui-resourceroots='{ 
      "ui5bp": "./", 
      "model": "./model" 
      }' 
     > 
    </script> 


    <!-- Custom Styles --> 
    <link rel="stylesheet" type="text/css" href="css/style.css" /> 

    <script> 

     new sap.m.Shell("Shell", { 
      showLogout : false, 
      app : new sap.ui.core.ComponentContainer({ 
       name : 'ui5bp' 
      }), 
      homeIcon : { 
       'phone' : 'img/57_iPhone_Desktop_Launch.png', 
       '[email protected]' : 'img/114_iPhone-Retina_Web_Clip.png', 
       'tablet' : 'img/72_iPad_Desktop_Launch.png', 
       '[email protected]' : 'img/144_iPad_Retina_Web_Clip.png', 
       'favicon' : 'img/favicon.ico', 
       'precomposed': false 
      } 
     }).placeAt('root'); 
    </script> 
</head> 

<body class="sapUiBody" id="root"> 
</body> 

</html> 

,这是Webstorm控制台输出磨片的页面显示来自我“等待本地主机...“:

2014-12-30 14:50:16 Device API logging initialized - DEVICE 
2014-12-30 14:50:16 SAP Logger started. - 
2014-12-30 14:50:16 registerResourcePath ('', 'resources/openui/') - sap.ui.ModuleSystem 
2014-12-30 14:50:16 registerResourcePath ('ui5bp', './') - sap.ui.ModuleSystem 
2014-12-30 14:50:16 registerResourcePath ('model', './model/') - sap.ui.ModuleSystem 
2014-12-30 14:50:16 URL prefixes set to: - sap.ui.ModuleSystem 
2014-12-30 14:50:16 (default) : resources/openui/ - sap.ui.ModuleSystem 
2014-12-30 14:50:16 'ui5bp' : ./ - sap.ui.ModuleSystem 
2014-12-30 14:50:16 'model' : ./model/ - sap.ui.ModuleSystem 

我在哪里错了?

+0

在家里这个程序工作正常,但在工作中我有这个问题.. – padibro

回答

1

现在工作正常!我设置此选项: enter image description here