Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8544093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:28:13+00:00 2026-06-11T12:28:13+00:00

I am building a complex mathemathical software and I have to see while debugging

  • 0

I am building a complex mathemathical software and I have to see while debugging some 500×700 matrixes that are created. Also the matrixes are not filled in order, meaning that “randomly” they are been filled and I need to see that. I’ve read that with the memory screen I can see the memory locations and their values, but with such huge matrixes the memory windows is not useful for me.

so my question is, is there any other way to debug adn watch matrixes in visual studio 08 than the memory window?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T12:28:14+00:00Added an answer on June 11, 2026 at 12:28 pm

    The method I use to visualise complex data structures is to create a Dump() method in your class which formats the data into a string and returns a std::string. If you want to inspect the variable then select it in the debugger and invoke QuickWatch with Ctrl-Alt-Q and type myVariable.Dump(). This will then show you the string condensed into a single line. If you then click the magnifying glass icon it’ll open up a text visualiser window that can be resized.

    If you need more control over the format then make the Dump() method take an int for the level of detail you require.

    EDIT:

    Ok, here’s an example, using stringstream to assemble a string: [disclaimer: I haven’t tried compiling this]

    class Matrix {
    public:
      int m_Data[ROWS][COLS];
    
      ...
      std::string Dump() const {
        std::ostringstream oss;
        for (int r=0;r<ROWS; r++) {
          for (int c=0;c<COLS; c++) {      
            oss << m_Data[r][c] << " ";
          }
          oss << "\n";
        }
        return oss.str();
      }
    
      void DumpToFile() {
        std::ofstream os("output.txt");
        os << Dump();
      }
    };
    

    The Dump() method will output to a string that you can display in the QuickWatch window. If the text preview is too small then you could call DumpToFile() instead which will write the matrix to a file that you can view in a separate text editor. The key thing is that QuickWatch will evaluate function calls (to a limited degree) so you can use it to call these helper methods.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building from scratch a web application that is not trivial (have some algorithms
I have a system I'm building that seems to call for some complex rules
We are building a LAMP application that also needs to generate loads of complex
I'm building some software that needs a scheduling input, and I'd really like to
I have a semi-complex application i'm building that has various wizards and screens. I
We are building a fairly complex application that we need to be able to
I am building an app with complex data which I use arrays for. Some
Building my first SL MVVM application (Silverlight4 RC) and have some issues i don't
I'm currently building an Excel 2003 app that requires a horribly complex form and
I've a complex ActiveRecord query that I'm building up with different scopes, depending on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.