@@ -874,7 +874,7 @@ def change_to_call_frame(callFrame):
874
874
file_name = find_script (str (scriptId ))
875
875
first_scope = callFrame .scopeChain [0 ]
876
876
877
- params = {'objectId' : first_scope .object .objectId , 'name' : "%s:%s (%s)" % (file_name , line_number , first_scope .type )}
877
+ params = {'objectId' : first_scope .object .objectId , 'name' : "%s:(%s, %s) (%s)" % (file_name , line_number , callFrame . location . columnNumber , first_scope .type )}
878
878
channel .send (webkit .Runtime .getProperties (first_scope .object .objectId , True ), console_add_properties , params )
879
879
880
880
position = get_authored_position_if_necessary (file_name , callFrame .location .lineNumber , callFrame .location .columnNumber )
@@ -1047,14 +1047,16 @@ def run(self, edit):
1047
1047
if 'file' in command .options and 'line' in command .options :
1048
1048
file = command .options ['file' ]
1049
1049
line = command .options ['line' ]
1050
+ column = command .options ['column' ] if 'column' in command .options else "0"
1050
1051
else :
1051
1052
# eg., name can be
1052
1053
# c:\foo\bar\baz.js:422 (local)
1053
- p = re .compile ("^\s*(?P<file>.+)\s*:\s*(?P<line>\d+)(?P<remainder>\s+.*)$" )
1054
+ p = re .compile ("^\s*(?P<file>.+)\s*:\(\ s*(?P<line>\d+),\s*(?P<column>\d+)\ )(?P<remainder>\s+.*)$" )
1054
1055
m = p .search (name )
1055
1056
if m :
1056
1057
file = m .group ('file' )
1057
1058
line = m .group ('line' )
1059
+ column = m .group ('column' )
1058
1060
name = m .group ('remainder' )
1059
1061
else :
1060
1062
file = ""
@@ -1068,7 +1070,7 @@ def run(self, edit):
1068
1070
v .erase (edit , sublime .Region (0 , v .size ()))
1069
1071
1070
1072
if file and line :
1071
- position = get_authored_position_if_necessary (file , int (line ), 0 )
1073
+ position = get_authored_position_if_necessary (file , int (line ), int ( column ) )
1072
1074
if position :
1073
1075
file = position .file_name ()
1074
1076
line = position .one_based_line ()
0 commit comments