久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <bdo id='oCCk3'></bdo><ul id='oCCk3'></ul>
  • <small id='oCCk3'></small><noframes id='oCCk3'>

  • <i id='oCCk3'><tr id='oCCk3'><dt id='oCCk3'><q id='oCCk3'><span id='oCCk3'><b id='oCCk3'><form id='oCCk3'><ins id='oCCk3'></ins><ul id='oCCk3'></ul><sub id='oCCk3'></sub></form><legend id='oCCk3'></legend><bdo id='oCCk3'><pre id='oCCk3'><center id='oCCk3'></center></pre></bdo></b><th id='oCCk3'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='oCCk3'><tfoot id='oCCk3'></tfoot><dl id='oCCk3'><fieldset id='oCCk3'></fieldset></dl></div>
    <legend id='oCCk3'><style id='oCCk3'><dir id='oCCk3'><q id='oCCk3'></q></dir></style></legend>
      1. <tfoot id='oCCk3'></tfoot>
      2. 如何調試 Gulp 任務?

        How to debug a Gulp task?(如何調試 Gulp 任務?)
        • <bdo id='TVF76'></bdo><ul id='TVF76'></ul>

                <tbody id='TVF76'></tbody>

              <small id='TVF76'></small><noframes id='TVF76'>

              • <i id='TVF76'><tr id='TVF76'><dt id='TVF76'><q id='TVF76'><span id='TVF76'><b id='TVF76'><form id='TVF76'><ins id='TVF76'></ins><ul id='TVF76'></ul><sub id='TVF76'></sub></form><legend id='TVF76'></legend><bdo id='TVF76'><pre id='TVF76'><center id='TVF76'></center></pre></bdo></b><th id='TVF76'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='TVF76'><tfoot id='TVF76'></tfoot><dl id='TVF76'><fieldset id='TVF76'></fieldset></dl></div>
                <tfoot id='TVF76'></tfoot>

                  <legend id='TVF76'><style id='TVF76'><dir id='TVF76'><q id='TVF76'></q></dir></style></legend>
                  本文介紹了如何調試 Gulp 任務?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  如何使用諸如 Google Chrome 調試器之類的調試器來調試在我的 gulpfile.js 中定義的 gulp 任務,逐行執行任務的代碼?

                  How do I debug a gulp task defined in my gulpfile.js with a debugger such as the Google Chrome debugger, stepping through the task's code line by line?

                  推薦答案

                  使用 Node.js 6.3+ 版本,您可以使用 --inspect flag 在運行你的任務時.

                  With Node.js version 6.3+ you can use the --inspect flag when running your task.

                  調試名為 css 的 gulp 任務:

                  To debug a gulp task named css:

                  1. 找出你的 gulp 可執行文件在哪里.如果 gulp 安裝在本地,它將位于 node_modules/.bin/gulp.如果 gulp 已全局安裝,請在終端中運行 which gulp (Linux/Mac) 或 where gulp (Windows) 以找到它.

                  1. Find out where your gulp executable lives. If gulp is installed locally, this will be at node_modules/.bin/gulp. If gulp is installed globally, run which gulp (Linux/Mac) or where gulp (Windows) in a terminal to find it.

                  根據您的 Node.js 版本運行這些命令之一.如果需要,請將 ./node_modules/.bin/gulp 替換為步驟 1 中 gulp 安裝的路徑.

                  Run one of these commands according to your version of Node.js. If required, replace ./node_modules/.bin/gulp with the path to your gulp installation from step 1.

                  • Node.js 6.3+:node --inspect --debug-brk ./node_modules/.bin/gulp css
                  • Node.js 7+:node --inspect-brk ./node_modules/.bin/gulp css

                  使用 Chrome 瀏覽到 chrome://inspect.

                  Use Chrome to browse to chrome://inspect.

                  --debug-brk (Node.js 6.3+) 和 --inspect-brk (Node.js 7+) 標志用于暫停代碼執行在任務的第一行代碼上.這讓您有機會在任務完成之前打開 Chrome 調試器并設置斷點.

                  The --debug-brk (Node.js 6.3+) and --inspect-brk (Node.js 7+) flags are used to pause code execution on the first line of code of your task. This gives you a chance to open up the Chrome debugger and set breakpoints before the task finishes.

                  如果您不希望調試器在第一行代碼處暫停,只需使用 --inspect 標志.

                  If you don't want the debugger to pause on first line of code, just use the --inspect flag.

                  您還可以安裝 Node.js Inspector Manager (NIM) Chrome 擴展以幫助完成第 3 步.這將自動打開一個 Chrome 選項卡,調試器已準備就緒,作為手動瀏覽 URL 的替代方法.

                  You can also install the Node.js Inspector Manager (NIM) extension for Chrome to help with step 3. This will automatically open up a Chrome tab with the debugger ready to go, as an alternative to manually browsing to a URL.

                  這篇關于如何調試 Gulp 任務?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Browserify, Babel 6, Gulp - Unexpected token on spread operator(Browserify,Babel 6,Gulp - 傳播運算符上的意外令牌)
                  Is it possible to pass a flag to Gulp to have it run tasks in different ways?(是否可以將標志傳遞給 Gulp 以使其以不同的方式運行任務?)
                  Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
                  How to run Gulp tasks sequentially one after the other(如何一個接一個地依次運行 Gulp 任務)
                  Visual Studio 2015 crashes when opening Javascript files(打開 Javascript 文件時 Visual Studio 2015 崩潰)
                  Detect FLASH plugin crashes(檢測 FLASH 插件崩潰)

                    • <i id='xlqx9'><tr id='xlqx9'><dt id='xlqx9'><q id='xlqx9'><span id='xlqx9'><b id='xlqx9'><form id='xlqx9'><ins id='xlqx9'></ins><ul id='xlqx9'></ul><sub id='xlqx9'></sub></form><legend id='xlqx9'></legend><bdo id='xlqx9'><pre id='xlqx9'><center id='xlqx9'></center></pre></bdo></b><th id='xlqx9'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='xlqx9'><tfoot id='xlqx9'></tfoot><dl id='xlqx9'><fieldset id='xlqx9'></fieldset></dl></div>
                      <legend id='xlqx9'><style id='xlqx9'><dir id='xlqx9'><q id='xlqx9'></q></dir></style></legend>
                          <tbody id='xlqx9'></tbody>
                        <tfoot id='xlqx9'></tfoot>

                        <small id='xlqx9'></small><noframes id='xlqx9'>

                          <bdo id='xlqx9'></bdo><ul id='xlqx9'></ul>

                            主站蜘蛛池模板: 日本一本视频 | 色综合久久天天综合网 | 玖玖在线免费视频 | 麻豆久久久久久久 | 欧美精品在线一区二区三区 | 国产一区二区三区久久久久久久久 | 久久天堂 | 日韩欧美在线观看 | 日韩在线免费视频 | 99免费视频| 国产精品福利在线观看 | 国产成在线观看免费视频 | 免费成人午夜 | 日本久久网站 | 欧美日韩中文字幕在线播放 | 日韩欧美网 | 视频一区二区三区在线观看 | 日日摸天天添天天添破 | 久久新| 日本欧美国产 | 日本粉嫩一区二区三区视频 | 国产一区二区三区在线看 | 91在线精品一区二区 | 四虎永久免费在线 | 一区二区三区在线 | 国产精品美女久久久久久免费 | 97伦理影院| 精品日韩在线 | 久久久久国产精品一区二区 | 久久久久久国产精品免费免费男同 | 日韩一区二区黄色片 | 欧美日韩久久 | 国精品一区二区 | 五月天婷婷丁香 | 成人在线精品视频 | 高清色| 久久国产精品免费一区二区三区 | 国产91在线视频 | 久久99精品久久久久久国产越南 | 久久免费精品 | 国产精品视频一二三区 |