WebStorm移动端调试html方法

在使用WebStorm编写HTML代码,尤其是编写移动端web时,常常会需要在商机上显示网页进行测试,WebStorm上只需要简单几步即可访问

  1. 打开WebStorm上的preferences
    WebStorm移动端调试html方法

  2. 选择Debugger

  3. WebStorm移动端调试html方法

  4. 填写端口号,勾选框,填好后点击apply(端口号随便写,如被占用会提示)
    WebStorm移动端调试html方法

  5. 右键需要打开的html,选择open in Browser,再选择需要用哪种浏览器打开,打开页面
    WebStorm移动端调试html方法

  6. 修改url地址
    WebStorm移动端调试html方法
    将localhost修改成自己的IP地址就可以访问啦(mac系统可在命令行输入ifconfig查看或在系统偏好设置的网络里面看到)

相关文章:

  • 2022-12-23
  • 2022-01-09
  • 2021-05-22
  • 2021-09-27
  • 2021-07-30
  • 2022-02-07
  • 2021-05-24
猜你喜欢
  • 2022-12-23
  • 2021-12-09
  • 2021-09-04
  • 2021-11-16
  • 2022-12-23
  • 2021-10-11
相关资源
相似解决方案