Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce links in console when program panic's and shows backtrace #12

Open
Krotki opened this issue Aug 28, 2024 · 0 comments
Open

Introduce links in console when program panic's and shows backtrace #12

Krotki opened this issue Aug 28, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Krotki
Copy link
Contributor

Krotki commented Aug 28, 2024

Describe the feature

When process is run and panic happens something like flowing lines are produced:

V panic: Panic!
v hash: 1085f45
/tmp/v_1000/main.01J6DAPNKY9DCQNA52WXKKJ7KG.tmp.c:7539: at _v_panic: Backtrace
/tmp/v_1000/main.01J6DAPNKY9DCQNA52WXKKJ7KG.tmp.c:16106: by main__main
/tmp/v_1000/main.01J6DAPNKY9DCQNA52WXKKJ7KG.tmp.c:16163: by main

There could be console filter recognizing panic and adding links to files from the project. When link is clicked it should open/focus on a given file and move cursor to a given line (and possibly column, but this information is missing in backtrace).

The problem as seen above is with middle representation in C, but potentially can be fixed by compilation flags.

Use Case

Quickly navigate to places from backtrace to inspect code.

Other Information

No response

@Krotki Krotki changed the title Introduce links to file when program panic's and shows backtrace Introduce links in console when program panic's and shows backtrace Aug 28, 2024
@Krotki Krotki added the enhancement New feature or request label Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant