0

I am just reworking my VB6 in .NET.

I have a function that is called NonNullString(byval uAny As Object) As String

In VB6 I worked with a sqlite wrapper, and a recordset's member could be accessed by using

Dim sString$
sString = r("somefield") 

(without ".Value")

I have really many of these fields, and I changed most of them to ".Value", but for some I forgot it.

An exception is therefore raised in the function NoNullString, and I am looking for a way to quickly jump out of the function in order to see what the caller was and improve the code.

F5 does not do the job.

Does anybody have any ideas? Thank you!

4

1 に答える 1

1

CTRL+を押すLと、コール スタックが表示されます。そこから、スタックをナビゲートできます。

その後、エラーが発生した関数でSet Next Statement( CTRL+F9) を使用できます。この関数の実行を完了するにはEnd Function2 回。F10エラーが発生したと思われるスコープに入るまで、この手順を繰り返します。次に、x86 を使用している場合 (使用できるようになっているEdit&Continue場合)、コードを修正し、現在実行されている行をこの修正が発生する瞬間にドラッグします。そして、関数をもう一度実行してみてください。

Set Next Statement残念ながら、私が最初に提案しようとしていた現在のブロック関数/サブの外ではできません。

于 2012-12-17T12:03:29.810 に答える