Author Topic: Use of Symbol Browser  (Read 5034 times)

Offline BCCISProf

  • Multiple posting newcomer
  • *
  • Posts: 60
    • Professor Langsam's Home Page
Use of Symbol Browser
« on: September 19, 2006, 04:30:12 pm »
I have some simple questions regarding the symbol browser in the editor (using the Sept 18th nightly build):

Given the following trivial code:

Code
#include <iostream>
using namespace std;
int x;


int main()
{
    void testFunction(int);

    x = 5;
    cout << "x = " << x << endl;
    testFunction(x);
    cout << "x = " << x << endl;

    return 0;
}

void testFunction(int y){
    int z;

    z = y;

    cout << "z = " << z << endl;
}

1. Is there any way to browse the local variables or parameters (i.e z or y)?
2. When right clicking on the function call within the main, why does the "Find declaration of testFunction" or "Find implementation of testFunction" report that there are multiple matches when there is only one.
3. It is my understanding that "Function Declaration" refers to the function prototype, while "Function Definition" refers to the definition of the function. If so, why does either choice take you to the function header (definition)?
4. When right clicking on any local variable, parameter, or argument, why does "Find declaration" report that the variable is not found?
5. I note that the Watches (while debugging) does not show global variables automatically. Is this by design? I realize that you can add them explicitly.

Am I misunderstanding, or are these either bugs or items not yet implemented?

Thank you.
« Last Edit: September 19, 2006, 04:37:14 pm by BCCISProf »