Skip to content

Commit b105563

Browse files
committed
feat(pmdb): indicate the column position when printing the current line (the line command)
1 parent d54a842 commit b105563

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/pythonmonkey/lib/pmdb.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def enable(debuggerGlobalObject = pm.eval("debuggerGlobal")):
7979
const src = frame.script.source.text
8080
const line = src.split('\\n').slice(metadata.lineNumber-1, metadata.lineNumber).join('\\n')
8181
print(line)
82+
print(" ".repeat(metadata.columnNumber) + "^") // indicate column position
8283
continue blockingLoop;
8384
}
8485
case "p":

0 commit comments

Comments
 (0)