News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Remote DebugCenter

Started by Biterider, August 03, 2022, 06:06:40 AM

Previous topic - Next topic

Biterider

Hi
My recent experience with UEFI has shown me that in this environment it is extremely difficult to debug your code and it would be extremely helpful to have some additional jit debug output streams.
The idea I want to discuss is to extend the functionality of DebugCenter to receive messages over Ethernet, using on the sender side the native communication services provided by UEFI. In this way, specifying a network address of the computer running DC allows the debuggee to send debug information to DebugCenter over the network.

Sounds simple, but it is certainly not.  :biggrin:

Biterider

fearless

I would use the httpserver and setup a webhook url, that way the client machine receives the debug information. So the simple client utility uses the http server and registers the webhook url to listen to, for example: http://192.168.1.100/debuginfo

The UEFI sends debug information to the all the defined webhook urls for the client to parse and display or do whatever with.

Biterider

Hi fearless
Yes, that is the way to go  :thumbsup:


Biterider

Biterider

Hi
I found some really good code at SOF that shows how to send data from a UEFI application over the network Send TCP or UDP packets from efi-application.
This is the most critical part.

I would like to ask HSE, who is always one step ahead in all UEFI topics, if he has any stuff to support this debug function idea.  :rolleyes:

Biterider

HSE

Hi Biterider!

Quote from: Biterider on August 04, 2022, 06:27:22 AM
who is always one step ahead in all UEFI topics

far from that  :biggrin:

Quote from: Biterider on August 04, 2022, 06:27:22 AM
if he has any stuff to support this debug function idea.  :rolleyes:

In edk2 sources there is a package named NetWorkPkg with all available protocols.

HSE
Equations in Assembly: SmplMath

Biterider

Hi HSE
I'll check that.  :thumbsup:


Biterider

LiaoMi

Hi Biterider,

maybe this example will be useful: TcpTransport - A UEFI application to receive TCP network packets - https://github.com/vinxue/TcpTransport

Biterider

Hi LiaoMi
As you may guess, it's the other way around, I need to send from the UEFI application.
Anyway, maybe the project you found contains useful information. I thank you for that.  :thumbsup:

Biterider