Click here to Skip to main content
15,917,320 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Why I can't use the compiler option /GH in VC6.0 ? Pin
Mike Dimmick11-Jul-03 3:19
Mike Dimmick11-Jul-03 3:19 
GeneralRe: Why I can't use the compiler option /GH in VC6.0 ? Pin
jiangry11-Jul-03 3:35
jiangry11-Jul-03 3:35 
GeneralMSDN 2003 working with Visual studio 6.0a Pin
LizardKingSchwing11-Jul-03 2:31
LizardKingSchwing11-Jul-03 2:31 
GeneralRe: MSDN 2003 working with Visual studio 6.0a Pin
Mike Dimmick11-Jul-03 2:37
Mike Dimmick11-Jul-03 2:37 
GeneralRe: MSDN 2003 working with Visual studio 6.0a Pin
LizardKingSchwing11-Jul-03 2:48
LizardKingSchwing11-Jul-03 2:48 
GeneralRe: MSDN 2003 working with Visual studio 6.0a Pin
David Crow11-Jul-03 2:55
David Crow11-Jul-03 2:55 
Generalbreak pointer failed Pin
El'Cachubrey11-Jul-03 2:29
El'Cachubrey11-Jul-03 2:29 
GeneralRe: break pointer failed Pin
Mike Dimmick11-Jul-03 2:52
Mike Dimmick11-Jul-03 2:52 
When a breakpoint is on an illegal line, VC will try to move the breakpoint to the next legal line. If there's no legal next line, the breakpoint is disabled.

A line can be considered illegal if it doesn't contain a complete statement, for example, you have a multi-line if condition, or an assignment that is formatted into multiple lines, and you try to set the breakpoint on anything other than the first line. It will also be considered illegal if the source file isn't included in any of the modules loaded on startup.

To add modules to debug on startup, you can go to Project > Settings > Debug tab > Additional DLLs category, and add the modules you want loaded at startup.

VC 7.x is better in this respect, IIRC; if there's a breakpoint set in a module that isn't listed to be loaded at startup, the debugger simply marks the breakpoint with a '?' symbol in the source, then tries to set it when the module loads. I can't remember what happens if this fails.

Another reason this can fail is if the debugger crashes before the workspace is saved. Breakpoint locations are saved in the workspace options file (Workspace.opt in VC6, or .vco in eMbedded Visual C++), which is saved when you save the workspace. If the debugger crashes between saving the workspace and making changes to the source, or you change the source outside the IDE, the breakpoints remain on the line number that they were set on, even if the code's moved, when you next open the workspace. Breakpoints set in the Disassembly window are saved relative to the module base address, IIRC.

For more information on debugging with VC 6.0, read John Robbins' Debugging Applications[^]. This is the first edition; the new book only covers VS.NET. Unfortunately it's out of print.

--
Mike Dimmick
GeneralRe: break pointer failed Pin
Cedric Moonen11-Jul-03 2:52
Cedric Moonen11-Jul-03 2:52 
GeneralRe: break pointer failed Pin
Ryan Binns11-Jul-03 3:07
Ryan Binns11-Jul-03 3:07 
GeneralRe: break pointer failed Pin
El'Cachubrey11-Jul-03 3:54
El'Cachubrey11-Jul-03 3:54 
GeneralCASE tool Pin
Jerome Conus11-Jul-03 2:28
Jerome Conus11-Jul-03 2:28 
GeneralRe: CASE tool Pin
Ryan Binns11-Jul-03 2:33
Ryan Binns11-Jul-03 2:33 
GeneralRe: CASE tool Pin
Jonathan Gilligan11-Jul-03 6:05
Jonathan Gilligan11-Jul-03 6:05 
GeneralRe: CASE tool Pin
Ryan Binns11-Jul-03 6:14
Ryan Binns11-Jul-03 6:14 
GeneralRe: CASE tool Pin
RK_200011-Jul-03 8:14
RK_200011-Jul-03 8:14 
Generalimages in column headings Pin
si_6911-Jul-03 2:14
si_6911-Jul-03 2:14 
GeneralRe: images in column headings Pin
Ryan Binns11-Jul-03 2:30
Ryan Binns11-Jul-03 2:30 
GeneralSerialization of COLEDATETIME - STRANGE THING! Pin
giorgos11-Jul-03 2:01
giorgos11-Jul-03 2:01 
GeneralRe: Serialization of COLEDATETIME - STRANGE THING! Pin
Ryan Binns11-Jul-03 2:25
Ryan Binns11-Jul-03 2:25 
Generalcompiler option Pin
pranavamhari11-Jul-03 1:43
pranavamhari11-Jul-03 1:43 
GeneralRe: compiler option Pin
Mike Dimmick11-Jul-03 3:02
Mike Dimmick11-Jul-03 3:02 
GeneralRe: compiler option Pin
pranavamhari11-Jul-03 3:36
pranavamhari11-Jul-03 3:36 
GeneralIndicate the sort order in list view Pin
si_6911-Jul-03 1:33
si_6911-Jul-03 1:33 
GeneralRe: Indicate the sort order in list view Pin
Ryan Binns11-Jul-03 2:21
Ryan Binns11-Jul-03 2:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.