mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
chore(linter): add vscode debugger launch config (#8271)
refer to this [reply](https://discord.com/channels/1079625926024900739/1080101477672046712/1265758176754794598), add CodeLLDB launch config for debugging oxlint. usage for real dev like: ```json { "type": "lldb", "request": "launch", "name": "Debug Oxlint", "cargo": { "env": { "RUSTFLAGS": "-g" }, "args": ["build", "--bin=oxlint", "--package=oxlint"], "filter": { "name": "oxlint", "kind": "bin" } }, "args": ["--ignore-pattern=./ignore/**"], "cwd": "/home/xxx/temp/oxlint-7102" } ``` besides, i tired add config in `args` to override `Cargo.toml` `[profile.dev] debug = false`, but cargo in CodeLLDB throw error. ```json "args": [ "build", "--bin=oxlint", "--package=oxlint", "--config profile.dev.debug=true" ] ``` --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
aebe0ea46d
commit
45eb35434d
1 changed files with 17 additions and 0 deletions
17
.vscode/launch.json
vendored
17
.vscode/launch.json
vendored
|
|
@ -14,6 +14,23 @@
|
|||
"SERVER_PATH_DEV": "${workspaceRoot}/target/debug/oxc_language_server",
|
||||
"RUST_LOG": "debug"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "lldb",
|
||||
"request": "launch",
|
||||
"name": "Debug Oxlint",
|
||||
"cargo": {
|
||||
"env": {
|
||||
"RUSTFLAGS": "-g"
|
||||
},
|
||||
"args": ["build", "--bin=oxlint", "--package=oxlint"],
|
||||
"filter": {
|
||||
"name": "oxlint",
|
||||
"kind": "bin"
|
||||
}
|
||||
}
|
||||
// "args": ["--ARGS-TO-OXLINT"],
|
||||
// "cwd": "PATH-TO-TEST-PROJECT"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue