[#79107626] Creates the debug graph visitor

dont use global variable everything should be kept in the visitor