OLD | NEW |
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 if (response.body[i].type == Debug.ScriptType.Native) { | 698 if (response.body[i].type == Debug.ScriptType.Native) { |
699 result += ', native'; | 699 result += ', native'; |
700 } else if (response.body[i].type == Debug.ScriptType.Extension) { | 700 } else if (response.body[i].type == Debug.ScriptType.Extension) { |
701 result += ', extension'; | 701 result += ', extension'; |
702 } | 702 } |
703 result += ')'; | 703 result += ')'; |
704 } | 704 } |
705 details.text = result; | 705 details.text = result; |
706 break; | 706 break; |
707 | 707 |
| 708 case 'continue': |
| 709 details.text = "(running)"; |
| 710 break; |
| 711 |
708 default: | 712 default: |
709 details.text = | 713 details.text = |
710 'Response for unknown command \'' + response.command + '\''; | 714 'Response for unknown command \'' + response.command + '\'' + |
| 715 ' (' + json_response + ')'; |
711 } | 716 } |
712 } catch (e) { | 717 } catch (e) { |
713 details.text = 'Error: "' + e + '" formatting response'; | 718 details.text = 'Error: "' + e + '" formatting response'; |
714 } | 719 } |
715 | 720 |
716 return details; | 721 return details; |
717 }; | 722 }; |
718 | 723 |
719 | 724 |
720 function MakeJSONPair_(name, value) { | 725 function MakeJSONPair_(name, value) { |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
914 json += NumberToJSON_(elem); | 919 json += NumberToJSON_(elem); |
915 } else if (typeof(elem) === 'string') { | 920 } else if (typeof(elem) === 'string') { |
916 json += StringToJSON_(elem); | 921 json += StringToJSON_(elem); |
917 } else { | 922 } else { |
918 json += elem; | 923 json += elem; |
919 } | 924 } |
920 } | 925 } |
921 json += ']'; | 926 json += ']'; |
922 return json; | 927 return json; |
923 } | 928 } |
OLD | NEW |