src/Pure/Tools/debugger.ML
changeset 62504 f14f17e656a6
parent 62387 ad3eb2889f9a
child 62505 9e2a65912111
equal deleted inserted replaced
62503:19afb533028e 62504:f14f17e656a6
   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;