Skip to content

Commit 3bf674e

Browse files
committed
carefully obtain file path
1 parent e3f3c4d commit 3bf674e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/python-debugger-view.coffee

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ class PythonDebuggerView extends View
1515
backendDebuggerName: "atom_pdb.py"
1616

1717
getCurrentFilePath: ->
18-
editor = atom.workspace.getActivePaneItem()
19-
file = editor?.buffer.file
20-
return file?.path
18+
return "" unless editor = atom.workspace.getActivePaneItem()
19+
return "" unless buffer = editor.buffer
20+
return buffer.file?.path
2121

2222
getDebuggerPath: ->
2323
pkgs = atom.packages.getPackageDirPaths()[0]

0 commit comments

Comments
 (0)