how to set breakpoint and show source code when using cdb to debug c++ programs?
问题 why bp main failed? how to list source code as gdb's list command does? this question is not the same as CDB command for setting a breakpoint based on a line number seems cdb can be used with windbg, but is that possible to use cdb a bit similar to gdb? 回答1: cdb allows 3 different commands to set breakpoints: bp, bm, and bu bp accepts arguments that are numeric addresses bm accepts arguments that are textual symbols in a module that is already loaded bu accepts arguments that are textual