Skip to content

Commit c61b79d

Browse files
committed
Fixes restart for debugger, need function jerry_port_normalize_path
JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo [email protected]
1 parent 6006907 commit c61b79d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

jerry-debugger/jerry_client_main.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
import argparse
1616
import logging
17+
import os
1718
import re
1819
import select
1920
import struct
@@ -187,7 +188,11 @@ def __init__(self, is_func, byte_code_cp, source, source_name, line, column, nam
187188
self.is_func = bool(is_func)
188189
self.byte_code_cp = byte_code_cp
189190
self.source = re.split("\r\n|[\r\n]", source)
190-
self.source_name = source_name
191+
if source_name:
192+
self.source_name = os.path.relpath(source_name, os.getcwd())
193+
self.source_name = self.source_name.replace('\\', '/')
194+
else:
195+
self.source_name = source_name
191196
self.name = name
192197
self.lines = {}
193198
self.offsets = {}

0 commit comments

Comments
 (0)