[GH-ISSUE #827] Run App with Debug mode crashes #601

Closed
opened 2026-03-04 01:06:22 +03:00 by kerem · 4 comments
Owner

Originally created by @tchaton on GitHub (Mar 18, 2023).
Original GitHub issue: https://github.com/rivo/tview/issues/827

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 ?

Originally created by @tchaton on GitHub (Mar 18, 2023). Original GitHub issue: https://github.com/rivo/tview/issues/827 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 ?
kerem closed this issue 2026-03-04 01:06:23 +03:00
Author
Owner

@tchaton commented on GitHub (Mar 18, 2023):

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

<!-- gh-comment-id:1474931503 --> @tchaton commented on GitHub (Mar 18, 2023): Also, it would be great to have more advanced examples with interactions. All the examples are pretty static.
Author
Owner

@rivo commented on GitHub (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.

<!-- gh-comment-id:1483925174 --> @rivo commented on GitHub (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](https://github.com/sponsors/rivo?metadata_source=tview_issue_827) to boost the creation of such material.
Author
Owner

@rivo commented on GitHub (Aug 26, 2023):

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

<!-- gh-comment-id:1694360764 --> @rivo commented on GitHub (Aug 26, 2023): Since there was no further information provided, I'm assuming this issue has been resolved.
Author
Owner

@spearson78 commented on GitHub (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. 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

<!-- gh-comment-id:2028009653 --> @spearson78 commented on GitHub (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. 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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#601
No description provided.