How to breakpoint and debug the wpthook

Hi Patrick
I installed the WPT Private Instances and it is helpful for us to improve the page performance. Now we have some customize requirements(e.g. show the DNS Lookup or Initial Connection time in the result table of summary or details page for the base page url) so I setup the DEV environment to debug the WPT Agent first.
When i set the breakpoint in WPTDriver, it will pause at the breakpoint and i can check the parameters and values.
But when i set the breakpoint in WPTHook(e.g. void Results::SavePageData in result.cc) and then start a test but it won’t pause at the breakpoint. And then i add some customize code (check the snapshot result.cc.png) to see if it is effictive. Then i check the result file in 1_IEWPG.txt.gz file (check the snapshot IEWPG.png), it shows it is effectively for the customize code.
The result file shows the full path of the application(browser) which is injected the DLL(wpthook.dll) file. Then i tried to set the full path of the browser exe file in wpthook project Property>Configurations Properties>Debugging>Command field and “Yes” for Attach field. But it is still can’t pause at the breakpoint.
I use Webpagetest 2.19 and the Visual Studio 2013. I am a new recruit, please help me about how can i debug and set the breakpoint in wpthook.
Thanks
Tom
[attachment=663][attachment=664]

In wpthook.cc there is a commented-out message box call that I use when I’m trying to attach a debugger: https://github.com/WPO-Foundation/webpagetest/blob/master/agent/wpthook/wpthook.cc#L120

That way you can run a test normally and when the message-box appears you attach to the process that owns the dialog.

Thank you! I got it.:stuck_out_tongue: