Jump to content
  • Advertisement
Sign in to follow this  
tomba

help, can't debug in vc++ net

This topic is 4466 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
Advertisement
Not weird at all. Yet. Are you running in Release? Have you made sure that debug information is being generated? Are you actually attaching the debugger to the process?

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!