谷歌瀏覽器配置
如何設置idea打開的chrome瀏覽器有用戶數據
1)IntelliJIdea2019.2\config\chrome-user-data清空
2)將谷歌瀏覽器的配置文件 複製到上面的文件夾中
3)將IntelliJIdea2019.2\config\chrome-user-data路徑天到上圖的文本框中
爲什麼要複製到將數據複製到一個文件夾而不是直接填寫路徑?
因爲如果你的chrome瀏覽器開着又用idea部署項目,則會出現如下警告
21:27 Waiting for connection to localhost:49824.
Please ensure that the browser was started successfully with remote debugging port opened.
Port cannot be opened if Chrome having the same User Data Directory is already launched.
另外,複製chrome用戶記錄到另一個文件夾後,idea打開的chrome瀏覽器窗口與桌面打開的瀏覽器的歷史記錄都是同步的
通過瀏覽器打開頁面
用瀏覽器打開頁面 則需要先滿足1)服務器已部署項目同時服務器已經啓動2)頁面可以通過url直接訪問
具體打開方式如下圖:
圖片來源:https://www.jetbrains.com/help/idea/configuring-third-party-tools.html
中文是通過谷歌翻譯的(另外說一句,idea的幫助文檔 機翻效果一般還不錯)