-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to determine on which line the error and which file. #429
Comments
source maps would be good. I think you'll get the wrong lines with straight alloy as well (since it is precompiled). |
@dbankier The problem with tishadow much deeper I'm working on source titanium, that would be able to use native tishadow Developing code for IOS, I was finished, now working with Android. Changes for IOS: rotorgames/titanium_mobile@dce1cb1 P.S. Code for Android is almost finished, but I have little time. I hope it will soon appear, and I'll pull request in titanium. |
@rotorgames, that is TiShadow used to be back in 2012. This commit roles it back and moves to the eval way (273ed75) These are the native commits back then for both iOS and Android that made it work. I moved away from that since it meant having custom tishadow builds for every sdk release. That used to happen more frequently and it was a hassle to maintain. It might be worth revisiting as native modules... |
@dbankier I have a very different approach. How it will work: Tishadow adds tiapp.xml line parameter. <Property name = "customDirectory" type = "string"> applicationDataDirectory:/{name}/{platform} </ property> After that, any request For example: require ("lib/q.js") // /data/data/com.rotorgames.myappname/app_data/MyAppName/android/lib/q.js Then, if the file in this folder will not be made a request to the default folder. Thus, there is no mention of tishadow, and this method may be to Use any plugin or application developer. Support Directory:applicationDataDirectory Support Valuesdeploytype |
Right. nice! |
@dbankier I'll do a separate Pull Request for tishadow, which I will consider all the changes titanium. Concerning, standard require access any ideas? How best to do it? require ("app.js", bool); Where Or make a separate function for this? In general, is it necessary? I have done so if the Any ideas? P.S. I think if I change the way of calling |
not sure if AppC will accept that, or this: |
@dbankier Done, Pull Request for Android and IOS. Soon prepare Pull Request for Tishadow |
nice - I'll be watching it. |
Any updates on this? Would be awesome to have it. |
In the application, Hello World (Alloy).
Try to call a nonexistent function test:
The console shows:
Try to call a nonexistent function in the controller
The console shows:
Why line and even files that was a mistake, do not match?
Perhaps, as you use the source map with tishadow?
Without this, it becomes very difficult to debug.
The text was updated successfully, but these errors were encountered: