调试 UWP 应用程序? (通过 plmdebug 与 windbg UI 连接之间的区别?)

Debugging UWP apps? (difference between attaching through plmdebug vs windbg UI?)

https://msdn.microsoft.com/en-us/library/windows/hardware/jj680085(v=vs.85).aspx

对于 plmdebug,您可以使用 /enabledebug + windbg 的路径。

例如,如果您想调试 "Movies & TV" 应用程序,它会在启动应用程序时自动附加到 video.UI.exe。

使用这个:

plmdebug /enabledebug Microsoft.ZuneVideo_3.6.25061.0_x64__8wekyb3d8bbwe "c:\Program Files (x86)\Windows Kits\Debuggers\x64\windbg.exe"

但我想知道使用 plmdebug 是否与简单地启动应用程序并通过 windbg UI 手动附加到 video.UI.exe 有什么不同?或者这两种只是实现完全相同的事情的两种方式?

plmdebug 禁用应用生命周期模型 (suspend/resume):

这是written in the MSDN page:

/enableDebug Package [DebuggerCommandLine]
Increments the debug reference count for a package. The package is exempt from PLM policy if it has a non-zero debug reference count. Each call to /enableDebug must be paired with a call to /disableDebug. If you specify DebuggerCommandLine, the debugger will attach when any app from the package is launched.

所以它会执行这个额外的步骤来确保应用程序在调试期间不会被挂起。