mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 06:02:07 +03:00
bt: add source file number integration
This commit is contained in:
parent
a0c0d781e8
commit
f4f12982ff
Notes:
sideshowbarker
2024-07-18 21:20:14 +09:00
Author: https://github.com/ElDonad Commit: https://github.com/SerenityOS/serenity/commit/f4f12982ff7 Pull-request: https://github.com/SerenityOS/serenity/pull/5593 Reviewed-by: https://github.com/linusg ✅
@ -90,10 +90,10 @@ int main(int argc, char** argv)
|
||||
auto full_path = LexicalPath::canonicalized_path(String::formatted("/usr/src/serenity/dummy/{}", symbol.filename));
|
||||
if (access(full_path.characters(), F_OK) == 0) {
|
||||
linked = true;
|
||||
out("\033]8;;file://{}{}\033\\", hostname, full_path);
|
||||
out("\033]8;;file://{}{}?line_number={}\033\\", hostname, full_path, symbol.line_number);
|
||||
}
|
||||
|
||||
out("\033[34;1m{}\033[0m:{}", LexicalPath(symbol.filename).basename(), symbol.line_number);
|
||||
out("\033[34;1m{}:{}\033[0m", LexicalPath(symbol.filename).basename(), symbol.line_number);
|
||||
|
||||
if (linked)
|
||||
out("\033]8;;\033\\");
|
||||
|
Loading…
Reference in New Issue
Block a user