This is a migrated thread and some comments may be shown as answers.

debugging fails with error

6 Answers 32 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Benjamin
Top achievements
Rank 1
Benjamin asked on 29 Apr 2015, 06:04 PM

As mentioned here: https://github.com/NativeScript/nativescript-cli/issues/435

 I get exactly the same error:

When I try to debug app on a connected Android device using CLI: tns debug android --debug-brk
I keep getting "Internal error: TypeError: Cannot convert a Symbol value to a string" when trying to navigate to a page for instance. If I use tns run android the app is running just fine. I can't figure out what's the problem but it's impossible to debug.

 Any ideas what might be the cause?

 

6 Answers, 1 is accepted

Sort by
0
Benjamin
Top achievements
Rank 1
answered on 30 Apr 2015, 09:22 AM
Here's a screenshot of the error
0
Erjan Gavalji
Telerik team
answered on 01 May 2015, 12:26 PM
Hi Benny,

Can you confirm your project is based on NativeScript 1.0? This glitch got corrected when building 1.0...

Kind regards,
Erjan Gavalji
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Benjamin
Top achievements
Rank 1
answered on 01 May 2015, 12:49 PM
Erjan I have version 0.10.0
0
Erjan Gavalji
Telerik team
answered on 01 May 2015, 01:19 PM
Hi Benny,

Would you please, upgrade your project to 1.0 then?

To my regret there is no proper way to upgrade to 1.0 other than moving your application files (excluding the tns_modules folder) to a newly created project.

Here is a one-liner to have this update though. To run it, navigate to the parent folder of your application and change MyApp to the name of your NativeScript@0.10.0 application:

appName=MyApp && mv $appName $appName\_OLD && tns create $appName && rm -rf $appName/app && cp -r $appName\_OLD/app $appName && (cd MyApp && tns platform add ios)

Note: A folder, named [YourAppName]_OLD will appear. I left it for backup purposes. You can safely delete it once you confirm the upgrade.

Kind regards,
Erjan Gavalji
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Erjan Gavalji
Telerik team
answered on 01 May 2015, 01:25 PM
Hi Benny,

Edit, the command I sent contains a reference to a locally-installed nativescript command-line interface I used for the demo purposes. The correct command would be:

appName=MyApp && mv $appName $appName\_OLD && tns create $appName && rm -rf $appName/app && cp -r $appName\_OLD/app $appName && (cd MyApp && tns platform add ios)

Kind regards,
Erjan Gavalji
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Benjamin
Top achievements
Rank 1
answered on 03 May 2015, 06:14 AM

Thanks Erjan for your detailed help!

 Everything works now :)

Tags
General Discussions
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Benjamin
Top achievements
Rank 1
Erjan Gavalji
Telerik team
Share this question
or