When I debug a Swift application in Xcode, the debugger expects an expression in Swift format. How can I switch it to expect an Objective-C expression?
For example, I want to be able to type expr id $foo = [[SomeClass alloc] initWithBar:@"quux"];Swift instead of any equivalent.
expr id $foo = [[SomeClass alloc] initWithBar:@"quux"];
Swift 3.0 or before use: You can use the following command to name all available languages ββin LLDB.
Swift 4.0
Create an alias like "eco" to print target-c objects
(lldb)command alias eco expression -l objective-c -o -- (lldb)eco [[UIApplication sharedApplication] userHomeDirectory] /Users/...
Xcode LLDB WWDC 2018 , :
expression -l objc -O -- [doYourStuff here]
, Swift Objective C . , , , :
error: use of undeclared identifier 'self'
, , '. :
'
expression -l objc -O -- ['self' class]
Source: https://habr.com/ru/post/1653188/More articles:Python: how to group a list of objects by their characteristics or attributes? - pythonCan I pass a reference type to a template to specify the following types of non-piggy template parameters? - c ++Download on pypi without credentials in .pypirc - pythonHow to get the number of Facebook likes URLs consistently? - facebookΠΠ°ΠΊ ΡΠΎΡ ΡΠ°Π½ΠΈΡΡ Π·Π½Π°ΠΊΠΈ ΠΏΡΠ΅ΠΏΠΈΠ½Π°Π½ΠΈΡ Π² Scikit-Learn text CountVectorizer ΠΈΠ»ΠΈ TfidfVectorizer? - scikit-learnPandas - Group / data cells in longitude / latitude - pythonΠ Π΅ΡΠ΅Π½ΠΈΠ΅ ΠΌΠ½ΠΎΠ³ΠΎΡΠ»Π΅Π½ΠΎΠ² Ρ ΠΊΠΎΠΌΠΏΠ»Π΅ΠΊΡΠ½ΡΠΌΠΈ ΠΊΠΎΡΡΡΠΈΡΠΈΠ΅Π½ΡΠ°ΠΌΠΈ Ρ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π½ΠΈΠ΅ΠΌ sympy - pythonSplitting Long php generated HTML table? - htmlhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1653192/how-to-apply-class-to-body-element-using-foundations-responsive-navigation&usg=ALkJrhiUiwNPvilor3OK0ZC-OWyzs5fScAInsert string in pandas framework based on string value? - pythonAll Articles