In my point of view it would be helpful when debugging to disable code optimization since when I debug an VisualGDB application it is jumping like a “crazy horse through” the code …
In the VisualGDB project settings I added the -O0 (disable code optimizations completely) but it doesn’t change anything.
Useful tips but not what I am looking for at the moment: http://visualgdb.com/debugging/
Example: pDevice == NULL:
47: GELinBeeper::GELinBeeper(const char *pDevice)
48: {
49: if (pDevice == NULL)
50: {
51: _pDevice = (char *)DEFAULT_BEEPER;
52: }
53: else
54: {
55: _pDevice = (char *)pDevice;
56: }
57: }
Breakpoint at 49:
47, 51, 55, 51, 57
Or is there something wrong with my settings?