Skip to content

Commit 744a3b4

Browse files
authored
Enable direct debugging by default in playground composition app (#12855)
1 parent 621c11e commit 744a3b4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/playground/windows/playground-composition/Playground-Composition.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ struct WindowData {
8888
winrt::Microsoft::ReactNative::ReactInstanceSettings InstanceSettings() noexcept {
8989
if (!m_instanceSettings) {
9090
m_instanceSettings = winrt::Microsoft::ReactNative::ReactInstanceSettings();
91+
m_instanceSettings.UseDirectDebugger(true);
9192
m_instanceSettings.UseFastRefresh(true);
9293
}
9394

@@ -238,6 +239,15 @@ struct WindowData {
238239
}
239240
}
240241

242+
/*
243+
* Uncomment this to run using the bridge. This isn't publicly exposed, and isn't a mode that we will
244+
* support (Fabric will always be bridgeless for windows.) But it can be useful for internal bug diagnosis.
245+
*/
246+
/*
247+
winrt::Microsoft::ReactNative::ReactPropertyBag{host.InstanceSettings().Properties()}.Set(
248+
winrt::Microsoft::ReactNative::ReactPropertyId<bool>(L"ReactNative", L"IsBridgeless"), true);
249+
*/
250+
241251
// Nudge the ReactNativeHost to create the instance and wrapping context
242252
host.ReloadInstance();
243253

0 commit comments

Comments
 (0)