Xcode: cómo salir de lldb swift repl
He cometido un error tipográfico depuración mi proyecto y apareció en lldb swift REPL ahora no sé cómo salir de ella y, simultáneamente, no salir de mi programa que me de depuración. Así que escribí expr-r my myVariable en lugar de expr-R my myVariable. y abajo está lo que veo. (si quieres probar personalmente utilizo Xcode 6.1, C++ code project, y myVariable tiene que existir)
(lldb) expr -r -- record.mFileRecord.mVolumeName
(std::string) $19 = ""
1> help expr
/var/folders/zv/r3033x4n0f72bprvyk8612480000gn/T/lldb/30856
/repl433.swift:2:5: error: consecutive statements on a line must be
separated by ';'
1> quit
/var/folders/zv/r3033x4n0f72bprvyk8612480000gn/T/lldb/30856
/repl434.swift:2:1: error: use of unresolved identifier 'quit'
quit
1> exit
/var/folders/zv/r3033x4n0f72bprvyk8612480000gn/T/lldb/30856/repl435.swift:2:1: error: use of unresolved identifier 'exit'
exit
1> exit()
/var/folders/zv/r3033x4n0f72bprvyk8612480000gn/T/lldb/30856/repl436.swift:2:1: error: use of unresolved identifier 'exit'
exit()
^
1> quit()
/var/folders/zv/r3033x4n0f72bprvyk8612480000gn/T/lldb/30856/repl437.swift:2:1: error: use of unresolved identifier 'quit'
quit()
1> .quit
/var/folders/zv/r3033x4n0f72bprvyk8612480000gn/T/lldb/30856
/repl438.swift:2:2: error: could not find member 'quit'
.quit
^~~
1> :quit
(aquí mi solicitud terminó y lldb se mató a sí mismo)
23
1 answers
Con un solo dos puntos puedes dejar el Swift REPL y volver a lldb:
(lldb) repl 1> 2> 3> : (lldb)
(Se encuentra aquí: http://swift.exomachina.com/how-to-use-lldb-to-debug-swift-program.)
Con :quit
puede detener toda la sesión de depuración:
(lldb) repl 3> 4> 5> :quit 5> Program ended with exit code: 9
44
Author: Martin R,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-02-18 14:23:48
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-02-18 14:23:48