Add temporary api to allow custom initialization of debug session data

(cherry picked from commit fada6f1910dd1d73b7de2c030f877b14e5e361f7)