
可以断点,没什么毛病。
检查LayaIDE项目设置预览服务端口
检查.vscode里面的launch.json配置
在Course里面按F5启动调试
{
// 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": "launch",
"name": "LayaAir Debug",
"url": "http://localhost:18092/",
"webRoot": "${workspaceFolder}/bin",
"runtimeArgs": [
"--allow-file-access-from-files",
"--disable-web-security"
]
}
]
}