This is a small work to make a custom debugger in linux. I saw some resources for this , but nothing completed or in easily working conditions.
Run the debugger like ./debugger when prompted for executable please provide full path.
g++ -m32 debugger.cpp -o debugger
./ debugger <FULL PATH TO BINARY>
######### Commands ##############
next : To step
break 0x12345678 : To set break point at 0x12345678
continue : Continue or c may be used
exit : Exit the program
infobreak : List break points
examined : view memory size DWORD at location
########################################