I am experimenting with command line debuggers on windows and I was wondering if there’s a way to have syntax highlighting in either cdb or the windbg console?
Is it possible to have syntax highlighting in cdb/windbg?
568 views Asked by mbl 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 DEBUGGING
- How to pass the value of a function of one class to a function of another with the @property decorator
- Visual Studio C++, breakpoints not stopping debugging DLL (GODOT GDExtention)
- Playwright JS: Getting an error when debugging using line numbers
- C++ skips line when promting for user to enter name of person being added to a string array
- Xcode: Can't Attach to process
- unity navmeshsurface prefab not found or whatever
- It seems to be a bug about "base::trace()" or "methods:::.TraceWithMethods()"?
- How to check reference counting issues when doing direct manipulations of CPython objects?
- How to scroll to the bottom of console window in PyCharm2019 automatically?
- need help debugging prolog
- Is there a way to deactivate (but not delete) conditional breakpoints when debugging?
- How can i debug a python exe which is created by using pyinstaller?
- Increment or Decrement volume programmatically on Xiaomi device adjusts it by 10 steps instead of one step
- Checking request JSON with image data
- Why cannot I set font of `xlabel` in `plotmf` in MATLAB?
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 WINDBG
- WinDbg of .Net application shows 2 threads with locks, but empty !locks and !syncblk
- using WinApi 32 in Windbg Breakpoints based actions
- Windows kernel debugging with windbg through network: is there an alternative to ".kdfiles"?
- WinDbg session does not connect
- TEB representation for ARM64, xpr register
- How to pull .natvis data out of a PDB?
- Exception code c0020001 on shutdown - how to determine which managed code function didn't run?
- How Windows Handle to associate corresponding object type?
- Is there any way to debugging Windows XP/2000 BSOD during installation?
- Viewing the named security attributes for token in windbg (kernel mode)
- DLL not found when Debugg using Windbg for Windows7
- Understanding the Dump for w3p app with WinDbg
- find driverObject from module address using windbg kernel mode debugging
- core dump files batch processing (Windows)
- Invalid Pointer Read (Access Violation) from undocumented KERNELBASE methods crashing Windows Services
Related Questions in CDB
- SQLPLUS connection string does not work with Oracle 21c CDB/PDB
- Remote OS authentication does not work with Oracle 21c PDB
- Storing tables into CDB or PDB?
- How to set a data breakpoint on a variable address in CDB (WinDbg)
- Rxdb sync not update db
- Issue with inspecting QJsonObject in QtCreator with CDB
- Unable to read .cdb file using Python
- error: unpack requires a buffer of 8 bytes in working with cdb file
- Windbg/cdb - Replace a slow conditional breakpoint with an in memory patch (32-bit)
- How to keep breakpoints between sessions using cdb (windbg command line)?
- Powershell: Call Debug Analyzer cdb.exe as Process
- ORA-01017: invalid username/password; logon denied on Pluggable database
- Is it possible to have syntax highlighting in cdb/windbg?
- Cant postgresql db rsync to constant db cdb
- How to convert this sql query to CDB criteria format on YII 1.1
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?
Popular Tags
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)
since you tagged windbg and have windbg in title this answer is for windbg only
i presume that you are aware windbg is gui and cdb is console application
windbg src window supports syntax highlighting and provides some options to change the colors and you can dock it side by side
cdb does not support color unless you are a magician
magic recipe for magicians that can run colored cdb
( it is mentioned that you can create a tools.ini file
create two entries col_mode: TRUE , col: srcchar R--
but there is a caveat that this only works in true console
I don't know if cmd.exe is true console or false console
I could never coax it to output in color except for .printf /D with dml )
Regarding the comment where to put tools.ini one can put tools.ini anywhere one wishes just has to make sure the environment variable INIT points to the directory where one has put it
in the example below i have tools.ini in the debugee directory or current working Directory denoted with .\ and .\tools.ini and i am setting the ENV VAR init to .\ viz current directory
here is a screenshot for windbg srcwindow with syntax highlighted src
followed by a colored cmd.exe dml .printf output
as you can see the .symopt+10 has been enabled from tools.ini
so cdb has parsed and understood the color entires
but single stepping doesn't get color