Is there a tool for displaying program code variables in the Vim editor or Ubuntu Terminal?

Asked 2 years ago, Updated 2 years ago, 90 views

I've been using C/C++ and Python in Ubuntu. I've been looking for a tool that allows me to view and debug variables since I got to know the extension called Variable Inspector in the Jupiter Notebook.

I heard that there is an IDE called pycharm and CLion, but because of the difficulty of introducing syntax checking features like Vim's syntax, and because I am familiar with Vim plug-ins, commands, and keybinds, I am looking for plug-ins or tools in my language environment.

Unlike Variable Inspector, it would be nice if you could display the matrix, but it would be helpful if it was real-time. Does anyone know about it? Thank you for your cooperation.

This question is the same on the following site.
I would appreciate your understanding and reply.
https://qiita.com/freqalbeltokei/items/ae814d55e1e0d61e1d89
https://teratail.com/questions/180016

linux ubuntu vim

2022-09-30 21:39

2 Answers

Why Vim & Terminal?
Serial or SSH connection?
Or do you prefer Vim key operations?

If it's a Terminal editor and IDE, Vim/Emacs can be cited.
For SSH, you can use VS Code or sshfs.
(VS Code has conditions, so I don't know if I can use it as it is.)

Add

(I don't know the reason for Terminal, so I'll put it on hold for now)

If you ignore the condition of Terminal, it's normal to jupyter,
Alternatively, use VS Code.

Installing the Python extension in VS Code allows you to use Variable explorer and data viewer similar features to Variable Inspector.
Vim has Vimulation key bindings
To install the extension, simply select the appropriate icon from the far left side of the screen as shown in the introduction video

Reference: (excerpt)
VS Code Document

It seems difficult to set up Vim as IDE, so if you want to know how to do it, you have to ask that question.

Also, if there are terminal conditions to access docker or remote machines (including cloud PCs), there are several methods.
If you just want to deal with terminal, you have Integrated Terminal.


2022-09-30 21:39

If the terminal is acceptable, displays questions tagged with Each has a standard pdb (pdb3 for Python 3), gdb command.
You can also use lldb by installing it.

It's hard to say that it's easy to use, but Vim can work with you in terminal mode.
In particular, gdb has a standard Termdebug command in Vim, so if you customize it, you can use it in your own way.


2022-09-30 21:39

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.