Post

Replies

Boosts

Views

Activity

editing Bool variable in lldb while debugging is not working properly
i wanted to edit an Bool value while debugging. For this i tried multiple approaches but none of them is workingFirst, I tried to keep the debug cursor on the variable and right click on the variable and tried to edit value. Although it shows the value had changed to true , the if block is not executedAnother ways i tried areexpression myvariable = truepo myvariable = truep myvariable = true.But in all these cases , if i print the variable in xcode lldb debugger, the value shows to be changed, but the execution flow is not changedvar myvariable = some expression if(variable){ // if block this part doesnt get executed after all these modifications. }I am using swift 4.2 and Xcode 10.3. Is there any other way to accomplish this?
1
0
1.3k
May ’20