Vector35 / debugger

Binary Ninja debugger
Other
217 stars 15 forks source link

Slow launching speed when using dbgeng adapter over a slow internet connection #519

Open xusheng6 opened 1 year ago

xusheng6 commented 1 year ago

I happened to be using the debugger while traveling and the network at the airport is slow. I notice that the launching speed for dbgeng adapter is really slow (for both live and TTD debugging). I noticed this is because the dbgeng is busy downloading the symbol files for a dozen of relevant DLLs, and it takes forever on a slow network. The debugger does become responsive if I wait patiently, but the long waiting time is not acceptable. Worse still, if the network connection has no internet access, the launch will hang indefinitely.

The issue can be fixed by either connecting to a fast network or completing disconnecting from the network. Also, this affects windbg itself in the very same way: the launch will hang too if one use windbg directly.

In windbg, a use may be able to notice what's going on because the GUI shows a progress bar for the symbol download. In BN debugger's GUI, there is no such progress bar so there is no clue what is going on. And they likely just think the debugger malfunctions.

Not sure what the best way to fix this is, might detect the symbol downloading is taking very long and let the user know?

xusheng6 commented 3 weeks ago

we should also offer a setting to disable the symbol downloads