check for sub id in publishrequest, more debug

this enables subscription support against prosys example server
Let make  'if(Debug)' instead of comment?