I'm trying to debug a large C++ project on Linux remotely, which is a little difficult to re-build via Visual Studio locally. Therefore I attempt to debug it via console. While, the gdb or gdb --tui or gdb-dashboard tools is not convenient for interaction. I think pudb is a tool for python in the term of interaction. Therefore, are there any better text UI debuggers via console for C++?
Thanks for telling me the tools or any suggestion, I will really appreciate it!
Better text UI debugger for C++, like pudb for python
404 views Asked by Tong At
1
There are 1 answers
Related Questions in C++
- How to immediately apply DISPLAYCONFIG_SCALING display scaling mode with SetDisplayConfig and DISPLAYCONFIG_PATH_TARGET_INFO
- Why can't I use templates members in its specialization?
- How to fix "Access violation executing location" when using GLFW and GLAD
- Dynamic array of structures in C++/ cannot fill a dynamic array of doubles in structure from dynamic array of structures
- How do I apply the interface concept with the base-class in design?
- File refuses to compile std::erase() even if using -std=g++23
- How can I do a successful map when the number of elements to be mapped is not consistent in Thrust C++
- Can std::bit_cast be applied to an empty object?
- Unexpected inter-thread happens-before relationships from relaxed memory ordering
- How i can move element of dynamic vector in argument of function push_back for dynamic vector
- Brick Breaker Ball Bounce
- Thread-safe lock-free min where both operands can change c++
- Watchdog Timer Reset on ESP32 using Webservers
- How to solve compiler error: no matching function for call to 'dmhFS::dmhFS()' in my case?
- Conda CMAKE CXX Compiler error while compiling Pytorch
Related Questions in GDB
- crash utility itself crashes while decoding kdump generated from null pointer dereference in kernel module
- How to compile the Linux kernel with -O0 for more detailed debug?
- Can GDB call user-defined signal handler and still break on the code which threw a signal?
- Executable under GDB invokes different embedded Python
- GDB or GDB-oneAPI freezing when displaying complex variables in VSCode
- gdb: incorrect exit code
- Assembly, gdb duplicate names
- Don't pause GDB on child process exit
- Breakpoints for assembly code in VSCode with GDB
- Why is there a difference in memory writes when my qemu runs directly and when debugging the img with GDB?
- Shell execution buffer overflow server directly hosted
- How to set breakpoints in Visual Studio Code for debugging kernel code running in QEMU?
- Retrieving Exit Code from a Program Run with GDB in GitLab CI/CD Pipeline
- How to resolve the shared library of a function in core file, using GDB - when no symbols are loaded?
- GDB 'gef>' spam when using `layout asm`
Related Questions in GDBSERVER
- Attaching a debugger to a container/instance running on a K8s Pod?
- Debug dockercompose service using GDB
- gdbserver and ymm0h register
- Setting GDB arguments with VSCode
- Remote Debugging a shared Library (SO File) with GDB using PID
- How do I setup debugging environment for xv6 kernel on a remote server?
- Issues with gdbserver and stlink in configuring a mbed studio IDE development platform
- Debug C by gdb shows information about inline function is different
- How to debug the linux kernel on the real machine using gdb?
- Trouble Debugging xv6 Kernel with QEMU and Eclipse on Ubuntu: GDB Connection Issues
- VSCode Output Capture when using GDB Remote Targets
- Header file reference error when compiling gdbserver
- Strange behaviour in gdb with gdbserver
- Can gdb log all instructions and their addresses solely within a particular shared library?
- gef/peda/pwngdb/pwndbg heap commands not working while using the gdbserver with android phone
Related Questions in GDB-PYTHON
- Overwriting segfaulting instructions with NOPs doesn't fix segfault in gdb
- In gdb while debugging a core file, how do I read a structure given the address using a python gdb extension?
- Why can't I connect gdb to the main function by running a python script
- is there a python equivalent of C IN6_IS_ADDR_V4MAPPED macro?
- memset() does not work when called in GDB thru Python APIs
- Find a Rust enum variant name from a GDB-Python Value
- Get the char* value with python gdb
- Get unique id of type using GDB Python API
- How do I run GDB with the arguments I normally write in the terminal manually?
- Apply material and texture image using python in blender 3.4
- Implement custom operators with GDB python API
- writing a c++ script for using GDB commands and GDB results (like variable values) while running another c++ program
- How do I debug through a gdb helper script written in python?
- setting command alias through python API in gdb
- Can I use a variable in place of a math operator?
Related Questions in PUDB
- Removing Pudb on Ubuntu
- How to debug python code running inside exec()
- PuDB: Changing the window width?
- How can I select or change the theme on pudb (Python Debugger)?
- Starting an IPython interactive shell from pudb inside a co-routine fails
- How can I launch pudb with IPython's post-mortem %debug?
- Better text UI debugger for C++, like pudb for python
- pudb3 raises TypeError when I try to open modules
- redirect django runserver output in order to debug with pudb
- How to make a decorator transparent to debugger
- PUDB Error: <no source code available>
- How can I debug my python unit tests within Tox with PUDB?
- Robot Framework debug python code using PUDB
- Cannot use pudb for multiprocessing
- How to watch a variable in pudb?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
pudb is awesome and you can drop into an IPython terminal at any time with the current local variables. You probably won't get that level of interaction in C++ anytime soon. But gdb is very powerful and using the TUI plus some pretty-printers is definitely very usable, even in larger projects.
It helps if you read the documentation and learn some tricks, such as using gdb's convenience variables. You can store an object in a convenience variable when it is in scope and access it later to check its state using the convenience variable (as long as it still exists).
Using breakpoint commands and a
.gdbinitfile with repetitive commands also helps a lot.If you want to implement pretty printers for some of you classes, I think looking at other people's code is a great way to start. Here you can see some pretty printers for some classes in the armadillo library (used for linear algebra).