連接埠Ports

在偵錯工具架構中, In the debugger architecture, a port:

  • 是在伺服器上執行的一組進程的容器。Is a container for a set of processes running on a server. 例如,埠可能代表透過序列纜線或網路非 DCOM 電腦連線到 Windows CE 型裝置。For example, a port might represent a connection to a Windows CE-based device by a serial cable or to a networked non-DCOM machine. 一個特殊的埠(稱為本機埠)包含在本機電腦上執行的所有處理常式。One special port, called the local port, contains all the processes running on the local machine.

  • 可以依名稱或識別碼來識別其本身。Can identify itself by name or identifier.

  • 可以列舉在埠上執行的所有處理常式,並啟動和終止這些進程。Can enumerate all processes running on the port and launch and terminate these processes.

  • 是由 IDebugPort2 介面表示,它是藉由將 IDebugPortRequest2 引數傳遞至 AddPort所建立。Is represented by an IDebugPort2 interface, which is created by passing an IDebugPortRequest2 argument to AddPort.

    Visual StudioVisual Studio 提供預設的埠,可處理所有以 Windows 為基礎的處理常式,原生和受控。supplies a default port that handles all Windows-based processes, both native and managed. 您必須針對不是以 Windows 為基礎的外部裝置連接設定自訂埠。A custom port must be set up for connections with external devices that are not Windows-based. 若要提供這類自訂埠,您也必須設定自訂埠供應商。To supply such custom ports, you must also set up a custom port supplier.

另請參閱See also