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 8776033
In Process

The Archive Base Latest Questions

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

I have the following code: char *DecompressChunk(Node *startNode, int arraySize) { char *cubeArray =

  • 0

I have the following code:

char *DecompressChunk(Node *startNode, int arraySize)
{
    char *cubeArray = new char[arraySize];

When I put a breakpoint down after that, with arraySize being 18, when I hover over the array to try and view it, only the first element shows up and nothing else, I can print them and it works fine but I cannot view them all with VS. How do you set it so you can view all of them, or can you?

  • 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-13T18:57:12+00:00Added an answer on June 13, 2026 at 6:57 pm

    You can tell the debugger how large the array is by adding a comma followed by the size in the watch window (this is called a format specifier):

    cubeArray,18
    

    You can’t use a variable or anything as the array size.

    Here are some other tricks.


    This doesn’t help if you just want the tool-tips to show you more; it can only be used in watch windows.

    Although Microsoft probably could improve tool-tips for arrays in some special cases, in general it would be very difficult due to the nature of arrays in C++; pointers to elements of an array have no way to know the bounds of that array. The effect this has on the debugger is probably one of the least significant problems. Other problems this creates impact the security and correctness of programs.

    If you avoid raw arrays in favor of smarter types then the debugger can provide better tool-tips. The debugger already knows how to display std::vector, for example.

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

Sidebar

Related Questions

I have the following code char ptr=new char(); int counter = 1; string s
i have the following code below: const char* timeformat = %Y-%m-%d %H:%M:%S; const int
I have the following code int ParseData(unsigned char *packet, int len) { struct ethhdr
I have the following code: tmp_data = simulated_data[index_data]; unsigned char *dem_content_buff; dem_content_buff = new
I have the following code: int main(int argc, char** argv) { onelog a; std::cout
I have the following code: #include <string.h> int main(void) { char *buffer = NULL,
say I have the following code: char[5][5] array; for(int i =0; i < 5;
i have following code #include <iostream> using namespace std; int main(int argc,char arg[]){ int
i have following code #include <iostream> using namespace std; int main(){ int i; char
I have the following code in my file: unsigned char * pData = new

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.