Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Double escape \ in debugger file paths
Fixes #1347

On Windows, the `file.path` has `\`, but they aren't escaped.  Therefore, replace them with escaped version, `\\` to fix debugging on Windows, but leave Linux and macOS unaffected.
  • Loading branch information
KronicDeth committed Sep 18, 2020
commit 491cd8d57dd97c3546c3bd229321760c83be43c3
2 changes: 1 addition & 1 deletion src/org/elixir_lang/debugger/Modules.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ object Modules {
fun erlArgumentList(mix: Boolean = false): List<String> =
listOf("-eval", "application:ensure_all_started(elixir)") +
copy(mix).flatMap { file ->
listOf("-eval", "'Elixir.Code':require_file(<<\"${file.path}\">>)")
listOf("-eval", "'Elixir.Code':require_file(<<\"${file.path.replace("\\", "\\\\")}\">>)")
} + if (mix) {
emptyList()
} else {
Expand Down