Debugging improvements - Visual Studio Natvis, GDB, LLDB

WebFreak001 d.forum at webfreak.org
Sat Apr 24 16:08:07 UTC 2021


On Friday, 23 April 2021 at 23:54:21 UTC, mw wrote:
> On Tuesday, 6 April 2021 at 21:04:47 UTC, WebFreak001 wrote:
>> I have created editor independent pretty printers / 
>> visualization files for Visual Studio's debugger\*, GDB and 
>> LLDB.
>>
>> The script and setup guide are available here: 
>> https://github.com/Pure-D/dlang-debug
>>
>
> where to input this command? from gdb command line? or in 
> .gdbinit?
>
> ```
> -enable-pretty-printing
> -interpreter-exec console "source /path/to/gdb_dlang.py"
> ```
>
> (sorry, I googled a bit, but didn't find the answer).

those are GDB-MI commands. If you can only run GDB console 
commands you can use

```
source /path/to/gdb_dlang.py
enable pretty-printer
```


More information about the Digitalmars-d-announce mailing list