c++ - MSVS 2013 "step into" steps in a non-consistent manner -



c++ - MSVS 2013 "step into" steps in a non-consistent manner -

i'm working on pure c++/opengl project without .net or other specific libs, pure c++ syntax pure opengl code. utilize windows 8.1 , msvs 2013 community update 4. set breakpoint , @ debugging paused expected , there continued f10/f11 go line line , skip code wasn't mine. showed line marker line executed, fine until in function , nail f10 skipped 3 lines that, no reason, conditional or otherwise. after f10 returned line supposed go in first place , continued correctly.

today after adding files , code, msvs 2013 debugger wouldn't break @ breakpoints @ all. after 6 hours of repairing, uninstalling , installing msvs 2013 express (with btw project incompatible (?!)) , msvs community 2013, debugger paused 1 time again @ breakpoints still f11 jumps randomly @ point. here part of code:

void loop() { glclearcolor(0.0f, 0.0f, 0.0f, 1.0f); // breakpoint!, press f10 glclear(gl_color_buffer_bit | gl_depth_buffer_bit); // marker here, press 1 time again f10 renderactionobjects(); // marker @ line // before executed, press f11 , gets me within ifstream.h! // input char; there step out shift+f11 // places marker @ function phone call above! // press f11 1 time again , gives _expected_ unhandled exception related // opengl (in nvoglv64.dll) , places marker... glfwswapbuffers(window0); // ... @ line glfwpollevents(); }

loop() repeatedly called in main().

static void renderactionobjects() // looped { int test; test = useracknowledge; // useracknowledge int defined globally cin >> useracknowledge; gluseprogram(programsi[0]); glbindvertexarray(vaoaction); outputdebugstring("testing string"); // here added line! <<<<<<<<<<<<<<<<< glactivetexture(gl_texture0); glbindtexture(gl_texture_2d, testtex); // set uniforms gluniform1i(testtex, 0); // 0 in gl_texture0 (texture unit 0) gldrawarrays(gl_triangles, 0, 3); glbindvertexarray(0); }

please give me hand if can, tell me try.

what's wrong whitesmiths? if bother edit reason, @ to the lowest degree create them same instead of partly c-style, partly whitesmiths.

edit: issue has been reduced to: msvs 2013 debugger if have multiple nested functions , each function starts assignments/opengl functions prior calling further-in-stack function, pressing f11 marker jumps first function phone call line straight deepest function, , not showing execution path line line.

then how can accomplish stepping from 1 line next along execution path?

c++ debugging opengl breakpoints

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -