Webstorm 调试不起作用 [英] Webstorm debug not work

查看:84
本文介绍了Webstorm 调试不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 Webstorm 配置为在带有 chrome 扩展 jetbrains IDE 支持的调试模式下工作.我想从这个应用程序开始 https://openui5.hana.ondemand.com/test-resources/sap/m/demokit/poa/index.html

I'm trying to configure Webstorm to work in debug-mode with chrome extension jetbrains IDE Support. I want start with this app https://openui5.hana.ondemand.com/test-resources/sap/m/demokit/poa/index.html

我下载了 sdk https://openui5.hana.ondemand.com/test-resources/sap/m/demokit/poa/index.html 我拿 \test-resources\sap\m\demokit\poa文件夹并通过从现有文件中新建项目..."将其导入到 webstorm 中,然后我选择这个场景

I download the sdk https://openui5.hana.ondemand.com/test-resources/sap/m/demokit/poa/index.html and I take \test-resources\sap\m\demokit\poa folder and import it in webstorm by "New Project from Existing Files..." and then I select this Scenario

我已经在 Chrome 中安装了 jetbrains IDE 支持插件.现在,如果我运行 index.html 一切工作正常!但是如果我调试文件,我会得到这个结果......:

I have installed the jetbrains IDE Support plugin in Chrome. Now, if I run the index.html all work fine! But if I debug the file I have this result...:

这是我的索引:

<!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',
                'phone@2' : 'img/114_iPhone-Retina_Web_Clip.png',
                'tablet' : 'img/72_iPad_Desktop_Launch.png',
                'tablet@2' : '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中控制台的输出,页面显示正在等待来自本地主机...":

and this is the output of console in Webstorm whe the page show me "waiting from localhost...":

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

我哪里错了?

推荐答案

现在工作正常!我设置了这个选项:

Now works fine! I set this options:

这篇关于Webstorm 调试不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆