Sign in to follow this  

help, can't debug in vc++ net

This topic is 4246 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i am using the visual c++ 2005 net, and i can't debug NOWHERE in my code. i tried putting a breakpoint , step into and "run to cursor", nothing works. i know it goes into a certain part of the code, because i used a messagebox tp see if it goes into a code, and it does. i received the messagebox. but using the "step into" doesn't work. it is just me or is that kinda weird?

Share this post


Link to post
Share on other sites
Ok but tell me us more about your project.
Is it a win32 or pure .NET ( with .NET framework) project ?

In case of win32 project , put a breakpoint on WinMain instruction

Share this post


Link to post
Share on other sites
1) i am doing a debug build
2) this is an opengl project and pure win32, i am not using any .net things
3)what do u mean attach to process?

i tried putting a breakpoit int the winMain, just gets ingnored.

Share this post


Link to post
Share on other sites
when i enter the debug for the first time, it goes into crt0.c (comes with c++) and goes into

#endif /* _WINMAIN_ */

if ( !managedapp )
exit(mainret);

_cexit();

}
__except ( _XcptFilter(GetExceptionCode(), GetExceptionInformation()) )
{


after jumping in this file, it goes directly to the program (ingores all my coding)

Share this post


Link to post
Share on other sites
Using Win32, there is a chance that the messages are not being caught because the debugger is in the foreground. As such,
your code may not be getting run, since windows isn't sending it messages for the msg loop to process anything.

Are you just running the debugger? or did you actuall start the debugger, switch to the game window, and then wait for the breakpoint to
get hit?

Share this post


Link to post
Share on other sites

This topic is 4246 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this