Partilhar via


BP_RESOLUTION_LOCATION

Especifica a estrutura do local de resolução de ponto de interrupção.

struct _BP_RESOLUTION_LOCATION {
   BP_TYPE bpType;
   union {
      BP_RESOLUTION_CODE bpresCode;
      BP_RESOLUTION_DATA bpresData;
      int                unused;
   } bpResLocation;
} BP_RESOLUTION_LOCATION;
public struct BP_RESOLUTION_LOCATION {
   public uint bpType;
   public IntPtr unionmember1;
   public IntPtr unionmember2;
   public IntPtr unionmember3;
   public uint   unionmember4;
};

Membros

  • bpType
    Um valor a partir do BP_TYPE enumeração que especifica como interpretar a bpResLocation união ou unionmemberX membros.

  • bpResLocation.bpresCode
    [Apenas C++] Contains the BP_RESOLUTION_CODE structure if bpType = BPT_CODE.

  • bpResLocation.bpresData
    [Apenas C++] Contains the BP_RESOLUTION_DATA structure if bpType = BPT_DATA.

  • bpResLocation.unused
    [Apenas C++] Um espaço reservado.

  • unionmember1
    [C# somente] Consulte os comentários sobre como interpretar.

  • unionmember2
    [C# somente] Consulte os comentários sobre como interpretar.

  • unionmember3
    [C# somente] Consulte os comentários sobre como interpretar.

  • unionmember4
    [C# somente] Consulte os comentários sobre como interpretar.

Comentários

Essa estrutura é um membro da BP_ERROR_RESOLUTION_INFO e BP_RESOLUTION_INFO estruturas.

[C# somente] O unionmemberX os membros são interpretados de acordo com a tabela a seguir. Examine a coluna da esquerda para a bpType valor horizontalmente, em seguida, para determinar o que cada unionmemberX membro representa e marshal a unionmemberX adequadamente. Consulte o exemplo de uma maneira de interpretar essa estrutura no C#.

bpLocationType

unionmember1

unionmember2

unionmember3

unionmember4

BPT_CODE

IDebugCodeContext2

-

-

-

BPT_DATA

string(expressão de dados)

string(nome de função)

string(nome de imagem)

enum_BP_RES_DATA_FLAGS

Exemplo

Este exemplo mostra como interpretar a BP_RESOLUTION_LOCATION estrutura no C#.

using System;
using System.Runtime.Interop.Services;
using Microsoft.VisualStudio.Debugger.Interop;

namespace MyPackage
{
    public class MyClass
    {
        public void Interpret(BP_RESOLUTION_LOCATION bprl)
        {
            if (bprl.bpType == (uint)enum_BP_TYPE.BPT_CODE)
            {
                 IDebugCodeContext2 pContext = (IDebugCodeContext2)Marshal.GetObjectForIUnknown(bp.unionmember1);
            }
            else if (bprl.bpType == (uint)enum_BP_TYPE.BPT_DATA)
            {
                 string dataExpression = Marshal.PtrToStringBSTR(bp.unionmember3);
                 string functionName = Marshal.PtrToStringBSTR(bp.unionmember2);
                 string imageName = Marshal.PtrToStringBSTR(bp.unionmember3);
                 enum_BP_RES_DATA_FLAGS numElements = (enum_BP_RES_DATA_FLAGS)bp.unionmember4;
            }
        }
    }
}

Requisitos

Cabeçalho: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

Consulte também

Referência

Estruturas e uniões

BP_TYPE

BP_ERROR_RESOLUTION_INFO

BP_RESOLUTION_INFO

BP_RESOLUTION_CODE

BP_RESOLUTION_DATA

BP_RES_DATA_FLAGS