首页 > Web开发 > 详细

babylonjs

时间:2018-07-31 12:55:07      阅读:187      评论:0      收藏:0      [点我收藏+]
//////////////////
//// debug模式启动浏览器
//////////////////
以debug模式启动浏览器,才可以attach成功,启动前需要退出chrome

Windows
Right click the Chrome shortcut, and select properties
In the "target" field, append --remote-debugging-port=9222
Or in a command prompt, execute <path to chrome>/chrome.exe --remote-debugging-port=9222

macOS
In a terminal, execute /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222

Linux
In a terminal, launch google-chrome --remote-debugging-port=9222

//////////////////
//// python 本地http server
//////////////////

python -m SimpleHTTPServer


//////////////////
//// attach 配置
//////////////////
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        
        {
            "type": "chrome",
            "request": "attach",
            "name": "Attach to Chrome",
            "port": 9222,
            "webRoot": "${workspaceFolder}"
        }
    ]
}

 

babylonjs

原文:https://www.cnblogs.com/Searchor/p/9395123.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!