Skip to content

Commit

Permalink
Fixes restart for debugger, need function jerry_port_normalize_path
Browse files Browse the repository at this point in the history
Signed-off-by: Yonggang Luo <[email protected]>
  • Loading branch information
lygstate committed Nov 14, 2024
1 parent d86f96b commit 7c31724
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jerry-debugger/jerry_client_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import argparse
import logging
import os
import re
import select
import struct
Expand Down Expand Up @@ -187,7 +188,11 @@ def __init__(self, is_func, byte_code_cp, source, source_name, line, column, nam
self.is_func = bool(is_func)
self.byte_code_cp = byte_code_cp
self.source = re.split("\r\n|[\r\n]", source)
self.source_name = source_name
if source_name:
self.source_name = os.path.relpath(source_name, os.getcwd())
self.source_name = self.source_name.replace('\\', '/')
else:
self.source_name = source_name
self.name = name
self.lines = {}
self.offsets = {}
Expand Down

0 comments on commit 7c31724

Please sign in to comment.