Author Topic: Generate Debug  (Read 1435 times)


  • Senior Community Member
  • Posts: 2185
  • Hero Points: 192
  • 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:

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 "{".