Jump to content
  • Advertisement
Sign in to follow this  
Friggle

Improving string output for debugger?

This topic is 2561 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

Hi,

any hints on how the debugger add-on output could be improved for strings (not only printing the address but the string content)?

Many thanks!

Share this post


Link to post
Share on other sites
Advertisement
Hi,

the idea is that the application would derive from the CDebugger add-on to add the application specific implementation, i.e. how to represent application registered types in the debugger.

I'll plan to improve the asrun sample to show how this can be done.

Regards,
Andreas

Share this post


Link to post
Share on other sites
the idea is that the application would derive from the CDebugger add-on to add the application specific implementation, i.e. how to represent application registered types in the debugger. [/quote]
Yes, I already do so in my app. The challenge for me is not how the representation in my app could be done but how I can determine in my debugger code that the parsed variable actually is a string.

Is this a simple thing to post here or should I wait until your asrun example is expanded?

Many thanks and regards

Share this post


Link to post
Share on other sites
That is quite easy:



asIObjectType *type = engine->GetObjectTypeById(typeId);
if( strcmp(type->GetName(), "string") == 0 )
{
s << *(string*)value;
}

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!