Author Topic: Generate Debug  (Read 601 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1656
  • Hero Points: 154
  • Text
Generate Debug
« on: September 18, 2014, 02:57:24 pm »
For this file: C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\winui\WindowsSearch\CrawlScopeCommandLine\cmdline.cpp
[/size]Select this function:

 
int CExclFlagParam::Init(int argc, wchar_t *argv[], int& rParamsProcessed)
And generate debug statement just does this:

    printf("Init()\n");
With no parameters.
Select the local variable "argc" on Line 19, and it generates

    printf("argc=%d\n", argc);
But its on line 26 - seems like it should be before line 19 in this case, not buried a couple of levels deeper.
On Line 97, generate debug for "j".
It inserts the statement before the opening "{".