๐Ÿ“œ midway ่ฐƒ่ฏ•

vscode ้€‰ๆ‹ฉ โ€œ่ฟ่กŒๅ’Œ่ฐƒ่ฏ•โ€

็„ถๅŽ create a launch.json file

{
    // ไฝฟ็”จ IntelliSense ไบ†่งฃ็›ธๅ…ณๅฑžๆ€งใ€‚
    // ๆ‚ฌๅœไปฅๆŸฅ็œ‹็Žฐๆœ‰ๅฑžๆ€ง็š„ๆ่ฟฐใ€‚
    // ๆฌฒไบ†่งฃๆ›ดๅคšไฟกๆฏ๏ผŒ่ฏท่ฎฟ้—ฎ: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [{
        "name": "Midway Local",
        "type": "node",
        "request": "launch",
        "cwd": "${workspaceRoot}",
        "runtimeExecutable": "npm",
        "windows": {
            "runtimeExecutable": "npm.cmd"
        },
        "runtimeArgs": [
            "run",
            "dev"
        ],
        "env": {
            "NODE_ENV": "local"
        },
        "console": "integratedTerminal",
        "protocol": "auto",
        "restart": true,
        "port": 7001,
        "autoAttachChildProcesses": true
    }]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28