v8-调试工具

236 阅读1分钟

GDB&LLDB调试

VSCode调试

{
    // 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": [
        {
            "name": "debug",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/out/x64.release/d8",
            "args": [
                "--allow-natives-syntax",
                "/Users/xxx/v8/app/app.js"
            ],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole": false,
            "MIMode": "lldb",
            "sourceFileMap": {
                "../..": "${workspaceFolder}"
            }
        }
    ]
}