Originally Posted by
Elysia
First, break the program (press the pause button).
A yellow arrow will point at the line it's currently at (it's to the left, where you can see the breakpoint).
Grab it and drag it to the line you want to move to.
If it pops up some dialog after you do, simply dismiss it with OK.
Wow, you guys on these forums are geniuses, haha!
Works great!!!
One issue (with Visual in general I guess), is there a way to get it to not step into the C++ stuff for every cin and cout? (Not my code)
Code:
template<class _Traits> inline
basic_ostream<char, _Traits>& __CLRCALL_OR_CDECL operator<<(
basic_ostream<char, _Traits>& _Ostr,
const char *_Val)
{ // insert NTBS into char stream //<--- steps in on this line every cin and every cout
typedef char _Elem;
typedef basic_ostream<_Elem, _Traits> _Myos;
ios_base::iostate _State = ios_base::goodbit;
streamsize _Count = (streamsize)_Traits::length(_Val); // may overflow
streamsize _Pad = _Ostr.width() <= 0 || _Ostr.width() <= _Count
? 0 : _Ostr.width() - _Count;
const typename _Myos::sentry _Ok(_Ostr);
etc...
Also, just curious, how does Visual C++ know that the process I am attaching to is the exact same as the one I have open when I click debug?
Man this is awesome!!!! Thanks guys!!!