Debugging improvements - Visual Studio Natvis, GDB, LLDB
mw
mingwu at gmail.com
Sat Apr 24 17:16:48 UTC 2021
On Saturday, 24 April 2021 at 16:08:07 UTC, WebFreak001 wrote:
> 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
> ```
Thanks, I put these 2 lines into .gdbinit, and it seems loaded.
I have a question about print AA: it only print values?
```
11 int[int] aa = [1:2, 2:4];
(gdb) p aa
$1 = [2] = {4, 2}
(gdb) p aa[1]
Invalid binary operation specified.
```
I tried both dmd -g and ldc2 -g on Linux, both the same behavior.
More information about the Digitalmars-d-announce
mailing list