Author Topic: Generate Debug  (Read 2174 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • 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 "{".