use lldb for iphone project in mac without using xcode











up vote
0
down vote

favorite












I an trying to find out how to debug iphone program without using xcode by reading here but I cannot get it to work



I managed to change my Xcode setting (Xcode 10) so that the .app file that gets created after build is now inside a folder within my project folder. This makes it easier to get the path to the .app file for lldb, and I can load the app file in lldb using something like



$ lldb /Projects/Sketch/build/Debug/Sketch.app


but I am not sure what to do from here onwards. I tried process launch and run, but they don't seem to start the .app file in debug mode like Xcode does. What should I do to start debugging iphone project outside Xcode?



The things I specifically want to do:




  • put breakpoints at particular lines of the .m files (in the same way I would click on the line number in a running iphone program in Xcode to put a breakpoint there)


  • while at a debug point, display values in arrays using matplotlib (this is the main reason I am trying to run lldb outside of Xcode, as it looks like matplotlib doesn't work in the lldb console in Xcode)


  • single step, step over and step out in the C code











share|improve this question






















  • Have you seen stackoverflow.com/a/10112466/5329717 ? And I'd start with verifying if matplotlib would work with raw lldb on some simple MaOS "helloWorld" in C as it will be much easier to setup.
    – Kamil.S
    Nov 22 at 10:30












  • @Kamil haden't seen that thanks for the link. And if I only start lldb on terminal (not attaching to anything) then matplotlib definitely works, so I guess it should work while debugging a program as well. By reading around questions on the site I have got the idea that matplotlib doesn't work if lldb is being used from within the xcode console, but should work otherwise
    – user13267
    Nov 22 at 11:05












  • perhaps capturing stdout and / or stderr output from the Simulator outside of XCode (but while still using it) would suffice for your case stackoverflow.com/questions/10165641/…
    – Kamil.S
    Nov 22 at 11:23












  • @Kamil I'll be working on an iphone not the simulator, but may be those posts will give some clue on how to do it
    – user13267
    Nov 22 at 11:35















up vote
0
down vote

favorite












I an trying to find out how to debug iphone program without using xcode by reading here but I cannot get it to work



I managed to change my Xcode setting (Xcode 10) so that the .app file that gets created after build is now inside a folder within my project folder. This makes it easier to get the path to the .app file for lldb, and I can load the app file in lldb using something like



$ lldb /Projects/Sketch/build/Debug/Sketch.app


but I am not sure what to do from here onwards. I tried process launch and run, but they don't seem to start the .app file in debug mode like Xcode does. What should I do to start debugging iphone project outside Xcode?



The things I specifically want to do:




  • put breakpoints at particular lines of the .m files (in the same way I would click on the line number in a running iphone program in Xcode to put a breakpoint there)


  • while at a debug point, display values in arrays using matplotlib (this is the main reason I am trying to run lldb outside of Xcode, as it looks like matplotlib doesn't work in the lldb console in Xcode)


  • single step, step over and step out in the C code











share|improve this question






















  • Have you seen stackoverflow.com/a/10112466/5329717 ? And I'd start with verifying if matplotlib would work with raw lldb on some simple MaOS "helloWorld" in C as it will be much easier to setup.
    – Kamil.S
    Nov 22 at 10:30












  • @Kamil haden't seen that thanks for the link. And if I only start lldb on terminal (not attaching to anything) then matplotlib definitely works, so I guess it should work while debugging a program as well. By reading around questions on the site I have got the idea that matplotlib doesn't work if lldb is being used from within the xcode console, but should work otherwise
    – user13267
    Nov 22 at 11:05












  • perhaps capturing stdout and / or stderr output from the Simulator outside of XCode (but while still using it) would suffice for your case stackoverflow.com/questions/10165641/…
    – Kamil.S
    Nov 22 at 11:23












  • @Kamil I'll be working on an iphone not the simulator, but may be those posts will give some clue on how to do it
    – user13267
    Nov 22 at 11:35













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I an trying to find out how to debug iphone program without using xcode by reading here but I cannot get it to work



I managed to change my Xcode setting (Xcode 10) so that the .app file that gets created after build is now inside a folder within my project folder. This makes it easier to get the path to the .app file for lldb, and I can load the app file in lldb using something like



$ lldb /Projects/Sketch/build/Debug/Sketch.app


but I am not sure what to do from here onwards. I tried process launch and run, but they don't seem to start the .app file in debug mode like Xcode does. What should I do to start debugging iphone project outside Xcode?



The things I specifically want to do:




  • put breakpoints at particular lines of the .m files (in the same way I would click on the line number in a running iphone program in Xcode to put a breakpoint there)


  • while at a debug point, display values in arrays using matplotlib (this is the main reason I am trying to run lldb outside of Xcode, as it looks like matplotlib doesn't work in the lldb console in Xcode)


  • single step, step over and step out in the C code











share|improve this question













I an trying to find out how to debug iphone program without using xcode by reading here but I cannot get it to work



I managed to change my Xcode setting (Xcode 10) so that the .app file that gets created after build is now inside a folder within my project folder. This makes it easier to get the path to the .app file for lldb, and I can load the app file in lldb using something like



$ lldb /Projects/Sketch/build/Debug/Sketch.app


but I am not sure what to do from here onwards. I tried process launch and run, but they don't seem to start the .app file in debug mode like Xcode does. What should I do to start debugging iphone project outside Xcode?



The things I specifically want to do:




  • put breakpoints at particular lines of the .m files (in the same way I would click on the line number in a running iphone program in Xcode to put a breakpoint there)


  • while at a debug point, display values in arrays using matplotlib (this is the main reason I am trying to run lldb outside of Xcode, as it looks like matplotlib doesn't work in the lldb console in Xcode)


  • single step, step over and step out in the C code








ios xcode lldb






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 19 at 11:46









user13267

2,664165590




2,664165590












  • Have you seen stackoverflow.com/a/10112466/5329717 ? And I'd start with verifying if matplotlib would work with raw lldb on some simple MaOS "helloWorld" in C as it will be much easier to setup.
    – Kamil.S
    Nov 22 at 10:30












  • @Kamil haden't seen that thanks for the link. And if I only start lldb on terminal (not attaching to anything) then matplotlib definitely works, so I guess it should work while debugging a program as well. By reading around questions on the site I have got the idea that matplotlib doesn't work if lldb is being used from within the xcode console, but should work otherwise
    – user13267
    Nov 22 at 11:05












  • perhaps capturing stdout and / or stderr output from the Simulator outside of XCode (but while still using it) would suffice for your case stackoverflow.com/questions/10165641/…
    – Kamil.S
    Nov 22 at 11:23












  • @Kamil I'll be working on an iphone not the simulator, but may be those posts will give some clue on how to do it
    – user13267
    Nov 22 at 11:35


















  • Have you seen stackoverflow.com/a/10112466/5329717 ? And I'd start with verifying if matplotlib would work with raw lldb on some simple MaOS "helloWorld" in C as it will be much easier to setup.
    – Kamil.S
    Nov 22 at 10:30












  • @Kamil haden't seen that thanks for the link. And if I only start lldb on terminal (not attaching to anything) then matplotlib definitely works, so I guess it should work while debugging a program as well. By reading around questions on the site I have got the idea that matplotlib doesn't work if lldb is being used from within the xcode console, but should work otherwise
    – user13267
    Nov 22 at 11:05












  • perhaps capturing stdout and / or stderr output from the Simulator outside of XCode (but while still using it) would suffice for your case stackoverflow.com/questions/10165641/…
    – Kamil.S
    Nov 22 at 11:23












  • @Kamil I'll be working on an iphone not the simulator, but may be those posts will give some clue on how to do it
    – user13267
    Nov 22 at 11:35
















Have you seen stackoverflow.com/a/10112466/5329717 ? And I'd start with verifying if matplotlib would work with raw lldb on some simple MaOS "helloWorld" in C as it will be much easier to setup.
– Kamil.S
Nov 22 at 10:30






Have you seen stackoverflow.com/a/10112466/5329717 ? And I'd start with verifying if matplotlib would work with raw lldb on some simple MaOS "helloWorld" in C as it will be much easier to setup.
– Kamil.S
Nov 22 at 10:30














@Kamil haden't seen that thanks for the link. And if I only start lldb on terminal (not attaching to anything) then matplotlib definitely works, so I guess it should work while debugging a program as well. By reading around questions on the site I have got the idea that matplotlib doesn't work if lldb is being used from within the xcode console, but should work otherwise
– user13267
Nov 22 at 11:05






@Kamil haden't seen that thanks for the link. And if I only start lldb on terminal (not attaching to anything) then matplotlib definitely works, so I guess it should work while debugging a program as well. By reading around questions on the site I have got the idea that matplotlib doesn't work if lldb is being used from within the xcode console, but should work otherwise
– user13267
Nov 22 at 11:05














perhaps capturing stdout and / or stderr output from the Simulator outside of XCode (but while still using it) would suffice for your case stackoverflow.com/questions/10165641/…
– Kamil.S
Nov 22 at 11:23






perhaps capturing stdout and / or stderr output from the Simulator outside of XCode (but while still using it) would suffice for your case stackoverflow.com/questions/10165641/…
– Kamil.S
Nov 22 at 11:23














@Kamil I'll be working on an iphone not the simulator, but may be those posts will give some clue on how to do it
– user13267
Nov 22 at 11:35




@Kamil I'll be working on an iphone not the simulator, but may be those posts will give some clue on how to do it
– user13267
Nov 22 at 11:35

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53373971%2fuse-lldb-for-iphone-project-in-mac-without-using-xcode%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53373971%2fuse-lldb-for-iphone-project-in-mac-without-using-xcode%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Costa Masnaga

Fotorealismo

Sidney Franklin