×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    13

    Contents of CDir* in while debugging in carbide

    Hi,

    I've variable 'CDir* aFileList' variable which is populated with file names from directory 'Z:\system\apps', how to look at the contents of this array during debugging in Carbide, Adding watch on this variable is of not much use as it just displays the address of this variable, Is there anywary to look at the array( having all the names of the files in that directory )?

    Thanks,
    Suresh.

  2. #2
    Regular Contributor
    Join Date
    Jan 2007
    Location
    Bangalore
    Posts
    285

    Re: Contents of CDir* in while debugging in carbide

    you can copy it to a TBuf variable lke this:

    CDir* filelist;
    ........
    ........
    ........
    for (TInt i=0;i<fileList->Count();i++)
    {
    TBuf<100> buffer;
    buffer.Copy((&(*fileList)[i])->iName); //
    }
    You could aslo use a HBufC* var type
    Regards
    Shashi Kiran G M

  3. #3
    Regular Contributor
    Join Date
    Jan 2007
    Location
    Bangalore
    Posts
    285

    Re: Contents of CDir* in while debugging in carbide

    One more thing you posted under the wrong category
    Regards
    Shashi Kiran G M

  4. #4
    Registered User
    Join Date
    Dec 2008
    Posts
    13

    Re: Contents of CDir* in while debugging in carbide

    Is it possible to look at the contents of the array in 'Expressions' or 'Variables' windows of the Carbide IDE itself?( i mean without modifying the code using for loop to look at each individual item )

    I found only one forum about Carbide editor here.Please direct me if there is any other forum exist to address these kind of problems.

    Thanks.

  5. #5
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: Contents of CDir* in while debugging in carbide

    Hi,
    not sure if you are still interested in this, but I think there is a way. Place a breakpoint after having filled the local variable with he desired data. You should then see all the local variables in the Variable view of the Debug pane of Carbide 2.0.

    Did not test this now, but am pretty sure it will work.
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

Similar Threads

  1. TRK 3 on device debugging and Carbide 2.0
    By ilancopelyn in forum Tools and SDK Feedback (Closed)
    Replies: 2
    Last Post: 2009-03-11, 06:47
  2. About System Device Debugging feature on Carbide Pro version
    By rajkumar278 in forum Symbian Tools & SDKs
    Replies: 4
    Last Post: 2008-07-04, 18:19
  3. Execution line in Carbide when debugging
    By beltry in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2007-09-14, 09:00
  4. On Device Debugging Blank Error Dialog E90 Carbide
    By aditya4180 in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 0
    Last Post: 2007-08-24, 16:06
  5. Carbide vs CW debugging
    By pgane in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-11-29, 23:12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×