Jump to content

Debugging NetMessages


Recommended Posts

Hello, I am interested in what goes into a Simulation Command Message but am having difficulties debugging.

I am using Visual Studio 2012 on Windows with the vc2012 build of the most recent commit. When I try to debug NetMessage.cpp with a breakpoint in CNetMessageFactory::CreateMessage and step through where pNewMessage gets initialized, I cannot see pNewMessage. pNewMessage does not show up in autos, locals, or when I put a watch on it. Is there a way to see the message being constructed?

Link to comment
Share on other sites

It might help to use a debug build, which will disable optimizations and give you a better chance of finding the variable you want. That's still hit or miss though, so a good fallback is to use some form of logging. Just general advice, not really even specific to 0 A.D. :) More about debugging in the context of 0 A.D. which may or may not be helpful http://trac.wildfiregames.com/wiki/Debugging

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...