How to debug v8 hello world sample on vscode?

50 views
Skip to first unread message

Feng Yu

unread,
Apr 21, 2022, 12:15:57 AM4/21/22
to v8-dev
I tried, but fail, below is how I do:

1. build
```
tools/dev/gm.py x64.debug
```
2. make a launch.json file
```
{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "v8 sample Debug",
      "type": "cppdbg",
      "request": "launch",
      "targetArchitecture": "x64",
      "program": "${workspaceFolder}/out/x64.debug/v8_hello_world",
      "args": [], // Optional command line args
      "stopAtEntry": true,
      "cwd": "${workspaceFolder}",
      "MIMode": "lldb"
    }
  ]
}
```
3. run and debug "v8 sample Debug"
20220421-121447.jpeg

Feng Yu

unread,
Apr 21, 2022, 12:58:19 AM4/21/22
to v8-dev
I forget leave a step to build hello world sample: 

```
ninja -C out/x64.debug v8_hello_world
```

Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages