Skip to content

chrome 调试frida

浏览器打开 chrome://inspect -> Open dedicated DevTools for Node

frida 使用VScode 调试脚本

在 .vscode中添加文件launch.json 添加下面内容

json
{
    "version": "0.2.0",
    "configurations": [
        {
            "address": "localhost",
            "localRoot": "${workspaceFolder}",
            "name": "Attach to Remote",
            "port": 9229,
            "remoteRoot": "file:///", 
            "request": "attach",
            "type": "node"
        }
    ]
}

frida启动命令要添加 --debug --runtime=v8 frida -U -f jp.co.hangame.sjchocotto -l out/_agent.js -o out/log.txt --debug --runtime=v8

具体怎么和typescript映射起来,弄了半天也没对上 调试的时候在debug面板 已加载脚本中 可以看到我们的脚本,在里面下断点就行了