Subj : Re: “breakpoints” in DOS To : borland.public.cpp.borlandcpp From : "Ed Mulroy [TeamB]" Date : Sun Sep 21 2003 04:14 pm > Am I even asking the right group? If you are using the Borland C++ compiler then this is the right group. If you are using the Turbo C++ or Turbo C compilers then the proper group is borland.public.cpp.turbocpp. For either compiler, a question about the debugger when debugging from within the IDE but not when using one of the Turbo Debuggers could also be asked in borland.public.cpp.ide The most common cause of that is that debug info was not generated. Enable debug info in object files and also enable the linker debug option. Then do a Project|Build. If you have used individually set options for source files in the project, then right click in the project window on each source file that you've done that to and check that debug info is enabled. Some lines may not have the little dots or ability to set a valid breakpoint on them because they do not exist. For instance: if (some_var) { do this do that a = 3 * c; } else a = 3 * c; The compiler would probably not build it as you see it there, but instead only put in only one line for the a = 3 * c; and the other one would not accept a breakpoint. This happens frequently in switch statements where duplicate code, particularly break or return statements are found in different cases. Some versions can get a bit confused in switch statements. The solution for that is to use curly braces to devine a block for each case like this: case someval : { code is here inside the braces break; } .. Ed > Rob C wrote in message > news:3f6ded53@newsgroups.borland.com... > > platform - DOS standard > > Am I even asking the right group? > > I have two questions . . . > > 1) I can’t get “breakpoints” to work. DEBUG|BREAKPOINT, and the program is supposed to stop at that line, so you can check the variables - but it doesn ’t. What’s going on? > > 2) How can I search for a line number in my IDE? > > .