rivo / tview

Terminal UI library with rich, interactive widgets — written in Golang
MIT License
11.17k stars 574 forks source link

Run App with Debug mode crashes #827

Closed tchaton closed 1 year ago

tchaton commented 1 year ago

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 commented 1 year ago

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

rivo commented 1 year ago

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 commented 1 year ago

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

spearson78 commented 8 months ago

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. https://github.com/microsoft/vscode-go/issues/843#issuecomment-526888927 and was able to debug tview applications.

There seem to have been some recent changes in VSCode ( https://github.com/golang/vscode-go/issues/124 )

Under linux the following launch.json config works

https://github.com/golang/vscode-go/issues/124#issuecomment-1012170449