# Grabbing xcode's console data using lldb

**URL:** <https://forums.kodeco.com/t/grabbing-xcodes-console-data-using-lldb/15095>\
**Category:** Swift\
**Created:** [May 21, 2016, 8:43pm UTC](https://forums.kodeco.com/t/grabbing-xcodes-console-data-using-lldb/15095 "2016-05-21T20:43:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![moroder](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/moroder/32/32833_2.png) [@moroder](https://forums.kodeco.com/u/moroder)\
**Post date:** [May 21, 2016, 8:43pm UTC](https://forums.kodeco.com/t/grabbing-xcodes-console-data-using-lldb/15095/1 "2016-05-21T20:43:37Z")

</div>

Hi,  
Really new here so I apologise in advance if this question is irrelevant…  
I’m trying to get Xcodes’s console’s data and copy it to a file automatically every time it spits information out. I followed Derek Selander’s tutorial on How To Create an Xcode Plugin, but I’m stuck on an issue regarding Xcode’s console, lldb and swift.  
I managed to get the console’s view (IDEConsoleTextView ) memory address using Dtrace, and confirmed it with lldb - hid my output and unhid it back again… question is how do I integrate this in my code using Swift, and would this actually be the correct approach?

Thanks!
