Commit Graph

45 Commits

Author SHA1 Message Date
Watson
b48ff57ac0 load custom LLDB command and user command
http://hipbyte.myjetbrains.com/youtrack/issue/RM-480
2014-07-14 10:56:17 +09:00
Watson
c8493e6800 fix an error in remote debugging if use UTF-8 as app name
http://hipbyte.myjetbrains.com/youtrack/issue/RM-452
2014-03-27 08:46:54 +09:00
Watson
e755e26d0d fix indentation 2014-03-25 13:58:37 +09:00
Watson
658471d24b fix a bug which Xcode5.1 lldb cannot connect to remote debugserver on iOS device
Looks like Xcode5.1 lldb no longer create UNIX domain socket using "unix-accept" URI.
So, we passes connected socket to lldb using "fd://".
2014-03-25 13:47:32 +09:00
Watson
6f6ce15d59 fix to be able to exit normally if it cannot connect lldb to remote
if deploy command cannot connect lldb to remote,
it causes an infinity loop in where connect to remote.
And lldb will not accept any commands.
2014-03-24 11:08:43 +09:00
Laurent Sansonetti
7fd4914694 capitalize 2014-01-02 11:57:56 +01:00
Laurent Sansonetti
9f4d9e01c7 add 'rake crashlog:device' task, wording/UX is still a work in progress 2013-12-29 19:55:48 +01:00
Laurent Sansonetti
b2b53228d6 run all LLDB debugger commands in synchronous mode: this is VERY important as we don’t want to run ANY command on the default LLDB debugger object in async mode, otherwise the state of the objects will not be properly updated when we receive commands from the GDB server on the device 2013-11-19 20:10:06 +01:00
Laurent Sansonetti
0ad5c6454f debug logging, hope we will not have to use that any time soon 2013-11-19 20:10:06 +01:00
Laurent Sansonetti
8210a5731b increase socket buffer size so that we can read most (all?) of the gdb server replies in one shot, for better performance 2013-11-19 20:10:06 +01:00
Laurent Sansonetti
cee7f2d260 xcode also sends this command, so we do too… 2013-11-15 14:40:07 +01:00
Laurent Sansonetti
a6e230cea1 send the appropriate command to configure symbol search paths 2013-11-15 14:39:32 +01:00
Laurent Sansonetti
76761b139d code format 2013-11-15 14:33:14 +01:00
Laurent Sansonetti
163590dff9 print a warning message in case the device support directory doesn’t have symbols, as it will slow down the debugger 2013-11-15 14:32:54 +01:00
Laurent Sansonetti
72b25c11b5 better device support directory selection, we will select the directory that matches exactly the version of iOS the device is running in priority over other directories 2013-11-15 14:31:54 +01:00
Watson
e64429b580 ignore SIGINT within select() in order to forward to lldb
if accept SIGINT within select(),
it will create zombie process of lldb.
2013-11-07 13:17:21 +09:00
Watson
eb6572a9c5 exit a loop if read() returns 0 because socket might be closed
related to http://hipbyte.myjetbrains.com/youtrack/issue/RM-309

This will fix a freeze when terminate lldb with "quit" command
2013-11-07 12:56:45 +09:00
Watson
f117ee686e use RMTask instead of NSTask to launch lldb for OSX 10.9
Because OSX 10.9's NSTask cannot launch lldb
(This is same issue with http://hipbyte.myjetbrains.com/youtrack/issue/RM-295)
2013-11-06 12:58:04 +09:00
Eloy Durán
96b3b43c3f [deploy] Only print remote path when installing only. 2013-10-31 16:25:59 +01:00
Eloy Durán
222e832eda [profiler] Print remote path after deploying app to device. 2013-10-31 16:01:16 +01:00
Watson
ca0232bf86 Fixed a bug where device log is wrong filtered with `rake device'
If day is 1-9, device log is sent to REPL like the following format.
Oct  3 16:40:38 Watson-no-iPhone Timer[431] <Warning>: Tapped

So,

	NSArray *words = [line componentsSeparatedByString:
	    @" "];

creates the object which has

	words[0] = @"Oct"
	words[1] = @""
	words[2] = @"3"

then date object which is used in filter is wrong.
2013-10-03 16:54:27 +09:00
Laurent Sansonetti
702131b227 avoid calling -[NSMutableString appendString:] with a nil argument 2013-09-20 15:36:43 +02:00
Watson
c0635ab7b7 fix a bug where non-ascii characters causes an assertion
http://hipbyte.myjetbrains.com/youtrack/issue/RM-257

'あ' => \U+FFE3
When shift 0xFF (with char type) to the right,
we will retrive 0xFFFFFFFF (with int type).

So we need a mask as 0x0F.
2013-09-16 11:21:02 +09:00
Laurent Sansonetti
68cd7dc5a0 console mode 2013-08-26 15:20:56 +02:00
Laurent Sansonetti
564651c118 add message when app runs 2013-08-26 13:35:27 +02:00
Laurent Sansonetti
e7da3ea8d0 sync 2013-08-23 17:02:32 +02:00
Laurent Sansonetti
3e027886ae lldb support 2013-08-23 14:04:14 +02:00
Laurent Sansonetti
b98dead547 'rake device' now runs the app and prints app logs from device console, added work in progress code for lldb (not working yet) 2013-08-23 00:23:03 +02:00
Laurent Sansonetti
45e33e6f9a Merge branch 'master' of github.com:lrz/RubyMotion 2013-03-25 08:52:41 +01:00
Laurent Sansonetti
d3b4da10da print to stderr 2013-03-25 08:52:36 +01:00
Watson
73b0a970c1 fix a bug where 'rake device debug=1' will cause a crash when contained UTF-8 characters in app name 2013-03-23 10:04:12 +09:00
Laurent Sansonetti
4c18345034 more work on the device debug no_start flag 2013-03-18 15:38:24 +01:00
Laurent Sansonetti
fc1aa27ca2 add 'no_start' option to 'rake device debug=1' to let people attach their own debugger (rubymine) 2013-03-05 14:56:28 +01:00
Laurent Sansonetti
1d71b4239b fix debugger if app-name contains space chaeracters 2012-09-25 18:22:49 +02:00
Laurent Sansonetti
120a05b4d6 add builtin commands (pro, pri) 2012-09-20 01:57:38 +02:00
Laurent Sansonetti
a9ffffbac9 deal with the case if the product version has a micro number (ex. 5.1.1) 2012-09-17 12:48:09 +02:00
Laurent Sansonetti
4216ab4759 tweaks 2012-09-16 01:49:27 +02:00
Laurent Sansonetti
067ba2e151 only attach debugger if 'debug' env variable is set 2012-09-15 16:42:13 +02:00
Laurent Sansonetti
d8df013ceb add debugger (experimental) 2012-09-15 16:00:37 +02:00
Laurent Sansonetti
8d8ab5ba1a better error message 2012-05-09 12:09:02 +02:00
Laurent Sansonetti
d7064d436f added a better error message 2012-05-05 23:03:58 +02:00
Laurent Sansonetti
cc6c7b43c8 simplify + use trololo instead of nyancat 2012-03-23 20:26:44 +01:00
Laurent Sansonetti
bfe3c0cdb3 better deploy (check if connected device is provisioned), more build system output fixes, misc changes 2011-12-25 17:06:22 +01:00
Laurent Sansonetti
36e2fcca3d open the installer proxy service at the beginning, to avoid a failure when we copy a very big app bundle 2011-12-16 20:58:51 +01:00
Laurent Sansonetti
5ef30a1ec2 move tools sources into the bin directory 2011-11-02 19:45:56 +01:00