1

関数 Foo() が関数 Baz() を呼び出す関数 Bar() を呼び出す場合、Bar() に追加して Bar() のコードを無視し、Baz のコードに直接ステップするようにデバッガに指示できる属性または何かがありますか? () Qux() のコードに足を踏み入れずに?

void Foo(){ 
  Bar(); // If start debugging here...
}

void Bar(){ // I want to skip this function completely...
  Qux();
  Baz();
}

void Baz(){ // And step to here.
  Zab();
}
4

1 に答える 1

2

これを行うには、 DebuggerStepThroughAttributeを使用できます。

[DebuggerStepThrough]
void Bar()
{ // I want to skip this function completely...
  Qux();
  Baz();
}
于 2012-09-28T16:04:38.183 に答える