With a declaration like: char[] string = "hello"; I can print it: (gdb) p string $1 = "hello" But can't slice it: (gdb) p string[0 .. 3] cannot take slice of non-array I'm compiling using dmd v1.079.0 and using gdb as of 4ac40124eef08045bf99ad9f4fcc277961953109.