@@ -116,9 +116,11 @@ internal static void Initialize(bool initSigs = false, ShutdownMode mode = Shutd
116116
117117 if ( Py_IsInitialized ( ) == 0 )
118118 {
119+ Console . WriteLine ( "Runtime.Initialize(): Py_Initialize..." ) ;
119120 Py_InitializeEx ( initSigs ? 1 : 0 ) ;
120121 if ( PyEval_ThreadsInitialized ( ) == 0 )
121122 {
123+ Console . WriteLine ( "Runtime.Initialize(): PyEval_InitThreads..." ) ;
122124 PyEval_InitThreads ( ) ;
123125 }
124126 // XXX: Reload mode may reduct to Soft mode,
@@ -140,7 +142,9 @@ internal static void Initialize(bool initSigs = false, ShutdownMode mode = Shutd
140142 IsFinalizing = false ;
141143 InternString . Initialize ( ) ;
142144
145+ Console . WriteLine ( "Runtime.Initialize(): Initialize types..." ) ;
143146 InitPyMembers ( ) ;
147+ Console . WriteLine ( "Runtime.Initialize(): Initialize types end." ) ;
144148
145149 ABI . Initialize ( PyVersion ,
146150 pyType : new BorrowedReference ( PyTypeType ) ) ;
@@ -152,6 +156,7 @@ internal static void Initialize(bool initSigs = false, ShutdownMode mode = Shutd
152156 TypeManager . Initialize ( ) ;
153157
154158 // Initialize modules that depend on the runtime class.
159+ Console . WriteLine ( "Runtime.Initialize(): AssemblyManager.Initialize()..." ) ;
155160 AssemblyManager . Initialize ( ) ;
156161 OperatorMethod . Initialize ( ) ;
157162 if ( mode == ShutdownMode . Reload && RuntimeData . HasStashData ( ) )
@@ -175,6 +180,7 @@ internal static void Initialize(bool initSigs = false, ShutdownMode mode = Shutd
175180 PyList_Append ( new BorrowedReference ( path ) , item ) ;
176181 }
177182 XDecref ( item ) ;
183+ Console . WriteLine ( "Runtime.Initialize(): AssemblyManager.UpdatePath()..." ) ;
178184 AssemblyManager . UpdatePath ( ) ;
179185 }
180186
0 commit comments