@@ -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,
@@ -143,7 +145,9 @@ internal static void Initialize(bool initSigs = false, ShutdownMode mode = Shutd
143145 IsFinalizing = false ;
144146 InternString . Initialize ( ) ;
145147
148+ Console . WriteLine ( "Runtime.Initialize(): Initialize types..." ) ;
146149 InitPyMembers ( ) ;
150+ Console . WriteLine ( "Runtime.Initialize(): Initialize types end." ) ;
147151
148152 ABI . Initialize ( PyVersion ,
149153 pyType : new BorrowedReference ( PyTypeType ) ) ;
@@ -155,6 +159,7 @@ internal static void Initialize(bool initSigs = false, ShutdownMode mode = Shutd
155159 TypeManager . Initialize ( ) ;
156160
157161 // Initialize modules that depend on the runtime class.
162+ Console . WriteLine ( "Runtime.Initialize(): AssemblyManager.Initialize()..." ) ;
158163 AssemblyManager . Initialize ( ) ;
159164 OperatorMethod . Initialize ( ) ;
160165 if ( mode == ShutdownMode . Reload && RuntimeData . HasStashData ( ) )
@@ -178,6 +183,7 @@ internal static void Initialize(bool initSigs = false, ShutdownMode mode = Shutd
178183 PyList_Append ( new BorrowedReference ( path ) , item ) ;
179184 }
180185 XDecref ( item ) ;
186+ Console . WriteLine ( "Runtime.Initialize(): AssemblyManager.UpdatePath()..." ) ;
181187 AssemblyManager . UpdatePath ( ) ;
182188 }
183189
0 commit comments