[#79107626] Creates the debug graph visitor

clean the code make some functions to help to read the code