使用WebStorm進行javascript調試

來源:互聯網
上載者:User

標籤:fill   安裝chrome   amp   get   地址   etc   ref   dom   png   

1.關於javascript調試

    曾經的選擇是使用Firefox瀏覽器的Firebug外掛程式,具體的用法到時候在細說,這篇文章登場的是開發靜態網頁及javascript的利器--webstorm.

2.相關軟體安裝和配置

  安裝WebStorm 
  WebStorm官網:( https://www.jetbrains.com/webstorm/ )

  安裝Chrome和JetBrains IDE Support 
  JetBrains IDE Support的地址是: 
       https://chrome.google.com/webstore/detail/hmhgeddbohgjknpmjagkdomcpobmllji
  不過一般都是被牆了,所以得FQ去安裝外掛程式了。

3.配置host

windows: C:\Windows\System32\drivers\etc

mac&linux:\etc\hosts

3、WebStorm調試JavaScript

1.WebStorm增加JavaScript調試選項 
增加個TestJS的項目工程,直接選擇Empty Project類型即可 
然後自己增加相應的html和js檔案 
在工程的右上方那裡,點那個下尖符號,彈出 Edit Configurations 
 
點綠色的+號,然後選擇JavaScript Debug 

   

 

  1. 配置好相關路徑就可以了 

     

2.運行調試效果 
點擊那個綠色的甲蟲,就可以看到實際的調試效果了。這個時候Chrome會有下面的提示 
 
會自動切換回WebStorm的調試介面 

 

使用WebStorm進行javascript調試

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.