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
ios xcode lldb
add a comment |
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
ios xcode lldb
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 capturingstdout
and / orstderr
output from theSimulator
outside ofXCode
(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
add a comment |
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
ios xcode lldb
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
ios xcode lldb
asked Nov 19 at 11:46
user13267
2,669165590
2,669165590
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 capturingstdout
and / orstderr
output from theSimulator
outside ofXCode
(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
add a comment |
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 capturingstdout
and / orstderr
output from theSimulator
outside ofXCode
(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
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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 / orstderr
output from theSimulator
outside ofXCode
(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