diff --git a/gogdb_test.go b/gogdb_test.go
index <HASH>..<HASH> 100644
--- a/gogdb_test.go
+++ b/gogdb_test.go
@@ -100,13 +100,32 @@ err2 cerr2
 			ResetIOs()
 			prbgtest()
 			So(ErrString(), ShouldEqual,
-				` [prbgtest:111] (func.010:101)
+				` [prbgtest:126] (func.010:101)
    prbgtest content
 `)
 		})
+
+		Convey("Test pdbg print with custom instance", func() {
+			apdbg := NewPdbg(SetBuffers)
+			apdbg.Pdbgf("test2")
+			So(apdbg.ErrString(), ShouldEqual,
+				`[func.011:110]
+  test2
+`)
+			apdbg.ResetIOs()
+			prbgtestCustom(apdbg)
+			So(apdbg.ErrString(), ShouldEqual,
+				` [prbgtestCustom:130] (func.011:116)
+   prbgtest content2
+`)
+		})
 	})
 }
 
 func prbgtest() {
 	Pdbgf("prbgtest content")
 }
+
+func prbgtestCustom(pdbg *Pdbg) {
+	pdbg.Pdbgf("prbgtest content2")
+}
Test pdbg print with custom instance