Debug on 4D-Plugin - How to do it?

We have a 4D-plugin named, “XXX.bundle” and source code also available with us.
As of now we are doing manual testing by passing hardcoded values to 4D-plugin. But, we want to debug the 4D-plugin using breakpoints by receiving values concurrently from 4D.
Could you please suggest us the possible way to debug the 4D-Plugine?

Note:

  1. [IDE] Eclipse CDT is used to manage the “XXX.bundle” source Code.
  2. “XXX.plugin” is developed using mixed languages (C++ and C)>Product :4D - 4D Server

OS : Mac OS X 10.12 and Windows 7
4D : v15.5