equal
deleted
inserted
replaced
188 val context = eval_context thread_name index SML toks; |
188 val context = eval_context thread_name index SML toks; |
189 val space = ML_Debugger.debug_name_space (the_debug_state thread_name index); |
189 val space = ML_Debugger.debug_name_space (the_debug_state thread_name index); |
190 |
190 |
191 fun print x = |
191 fun print x = |
192 Pretty.from_ML |
192 Pretty.from_ML |
193 (ML_Name_Space.display_val (x, FixedInt.fromInt (ML_Options.get_print_depth ()), space)); |
193 (ML_Pretty.from_polyml |
|
194 (ML_Name_Space.displayVal (x, FixedInt.fromInt (ML_Options.get_print_depth ()), space))); |
194 fun print_all () = |
195 fun print_all () = |
195 #allVal (ML_Debugger.debug_local_name_space (the_debug_state thread_name index)) () |
196 #allVal (ML_Debugger.debug_local_name_space (the_debug_state thread_name index)) () |
196 |> sort_by #1 |> map (Pretty.item o single o print o #2) |
197 |> sort_by #1 |> map (Pretty.item o single o print o #2) |
197 |> Pretty.chunks |> Pretty.string_of |> writeln_message; |
198 |> Pretty.chunks |> Pretty.string_of |> writeln_message; |
198 in Context.setmp_thread_data (SOME context) print_all () end; |
199 in Context.setmp_thread_data (SOME context) print_all () end; |