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

Run App with Debug mode crashes #827

Closed
tchaton opened this issue Mar 18, 2023 · 4 comments
Closed

Run App with Debug mode crashes #827

tchaton opened this issue Mar 18, 2023 · 4 comments

Comments

@tchaton
Copy link

tchaton commented Mar 18, 2023

Hey there,

I am trying to write a tool similar to k9s. However, It is very clear how to easily debug the tview. I tried to use the debugger but somehow, the App crashes.

Any suggestions ?

@tchaton
Copy link
Author

tchaton commented Mar 18, 2023

Also, it would be great to have more advanced examples with interactions. All the examples are pretty static.

@rivo
Copy link
Owner

rivo commented Mar 25, 2023

You're providing too little information to determine what the issue may be. I've successfully debugged tview applications in VS Code. Some by attaching the debugger to an existing process, others by directly running them in VS Code's built-in terminal. You might want to provide some details if you want us to help you.

Sure, more examples and/or tutorials would be nice. It's all a matter of having the time to create them. Consider sponsoring this project to boost the creation of such material.

@rivo
Copy link
Owner

rivo commented Aug 26, 2023

Since there was no further information provided, I'm assuming this issue has been resolved.

@rivo rivo closed this as completed Aug 26, 2023
@spearson78
Copy link

spearson78 commented Mar 30, 2024

I ran into the same issue. Its not a tview or tcell issue rather that the default dlv config does not have a terminal.

I followed the instructions here. microsoft/vscode-go#843 (comment) and was able to debug tview applications.

There seem to have been some recent changes in VSCode ( golang/vscode-go#124 )

Under linux the following launch.json config works

golang/vscode-go#124 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants