Reputation: 22289
I'm making a WinDbg extension. I can use DML (debugger markup language) to output a link into the WinDbg's command window as such:
//IDebugClient* pDebugClient;
CComPtr<IDebugControl4> pDebugControl;
pDebugClient->QueryInterface(IID_PPV(pDebugControl));
pDebugControl->ControlledOutputWide(DEBUG_OUTCTL_DML,
DEBUG_OUTPUT_NORMAL,
L"This is <link cmd=\"db 0x%x\">clickable here</link>",
address);
This will create a link, that if clicked, will run db
command in WinDbg.
I'm wondering, if there's a way to create a link there that will open an arbitrary URL in a web browser?
EDIT: As suggested in the comment, if I do:
pDebugControl->ControlledOutputWide(DEBUG_OUTCTL_DML,
DEBUG_OUTPUT_NORMAL,
L"This is <link cmd=\"https://stackoverflow.com\">clickable URL</link>");
After I click it, I'm getting:
2: kd> https://stackoverflow.com
^ Syntax error in 'https://stackoverflow.com'
So my guess is that one possibly needs to override the "click-event". I just can't find where it is exposed?
Upvotes: 0
Views: 73