Debts due to husband and wife

40. If the husband, though able so to do, fails or neglects to make adequate provision for the wife or children, the Court may direct that any debt due to the husband shall be paid to the wife in whole or in part for her maintenance and the maintenance of the children: Provided that nothing shall affect any order attaching such debts made in favour of a third party under any Law in force for the time being.