THRIFT-4110: add libthrift0-dbg debug symbols package to debian build process for symbolic debugging

This closes #1209
diff --git a/debian/control b/debian/control
index 43e7a0f..218d217 100644
--- a/debian/control
+++ b/debian/control
@@ -166,6 +166,17 @@
  This package contains the runtime libraries needed for C++ applications
  using Thrift.
 
+Package: libthrift0-dbg
+Architecture: any
+Section: debug
+Depends: ${shlibs:Depends}, ${misc:Depends}, libthrift0 (= ${binary:Version})
+Description: Thrift C++ library debug symbols
+ Thrift is a software framework for scalable cross-language services
+ development. It combines a software stack with a code generation engine to
+ build services that work efficiently and seamlessly.
+ .
+ This package contains the debug symbols for the Thrift C++ runtime libraries.
+
 Package: libthrift-dev
 Architecture: any
 Section: libdevel
diff --git a/debian/rules b/debian/rules
index 53aec3c..f370325 100755
--- a/debian/rules
+++ b/debian/rules
@@ -202,9 +202,10 @@
 	dh_installexamples
 	dh_installman
 	dh_link
+	dh_strip -plibthrift0 --dbg-package=libthrift0-dbg
 	dh_strip -ppython-thrift --dbg-package=python-thrift-dbg
 	dh_strip -ppython3-thrift --dbg-package=python3-thrift-dbg
-	dh_strip -pthrift-compiler -plibthrift0
+	dh_strip -pthrift-compiler
 	dh_compress
 	dh_fixperms
 	dh_makeshlibs