Suppressing LLDB verbiage when calling a function?

(Ben) #1

I am starting to link my functions now and have a lot of LLDB verbiage that I don't need to see, when all I need is the return value.

Is there a way to call a function but suppress it spitting anything out to the LLDB - essentially, I just want the resulting value, not the print statements.


(Quinn “The Eskimo!”) #2

I’m not sure what you’re referring to here. Could you perhaps post an example of what you’re seeing?

Share and Enjoy

Quinn “The Eskimo!” @ DTS @ Apple

(Ben) #3

I think I've seen you on the Apple forums?

Imagine checking every change on a function that performs several actions, printing out values to the LLDB before and after changes to see if they worked, then you get a lot of verbiage.

Basically, I have too much verbiage and sometimes I'd just like to suppress it because it's confusing to keep track of a function's behaviour when linking to another just for the value you need:


func oldTest() -> Int {
print("20 lines of text")

func currentTest() {
var = oldTest()
print("all the text in this function")
//unfortunately all the 20 lines from the other function get printed too!

what I want

x20 of what I don't

the rest of what I want

(Quinn “The Eskimo!”) #4

Are you using LLDB from the command line? Or LLDB from within Xcode?

Share and Enjoy

Quinn “The Eskimo!” @ DTS @ Apple