-
-
Notifications
You must be signed in to change notification settings - Fork 197
Livesync debugging support #1565
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
Comments
@sitefinitysteve may I ask for the expected scenario here, for example calling:
And when a change is applied in any file, what's the expected behavior - restart the whole debug session? |
@rosen-vladimirov I'm just passing on the request, but... I mean yeah, and if the --brk option to pause on debug start could be eliminated that would be big as well... its another (usually) unneeded step\pause. How about this (it's been suggested before) Remove livesync and make tns run just do livesync on the watch command, the same with debug. |
Hi guys. this is a vitally important part of a mobile developers tool chain. We need to get the most of our compilation and deployment cycles, and break-point debugging is an absolute must in mobile development as often we'll be testing some kind of bug/scenario which is driven by (And potentially totally related to) user interface behaviour that is really hard to test, with all the SOLID design principles in the world. |
and count me as a +1 on the unnecessary break on startup.. if we could have that available; but default to off, that'd be great. royal pita if you ask me. |
@georgejecook 1000% initial breakpoint on start is only handy if you need to debug from app start, which is not often |
Ok, let's separate this into parts:
Now let's consider the change is in the As you know, livesync of @KristinaKoeva , @blagoev what do you think. Do we have a chance to provide this feature? |
|
@sitefinitysteve , we can always set As per the second approach - I believe we can easily do this, just integrate the logic for restarting when file is changed. If that's what you need, we'll be glad to add it :) |
|
@sitefinitysteve thanks for the feedback. I believe Anyway, thanks for the feedback. We'll be waiting for more input on these questions. |
Absolutely no need to maintain state on a refresh. That is absolutely not what I want. I prefer a re-connect the debugger solution for live sync to breakpoint debugging as it gives me a new know state when debugging tricky things. So each refresh == new debug session. Just keep the break points, that's all. Ide plugins should do that anyhow. Sent from my iPhone
|
+1 for a livesync debug option! State preservation is again not of interest. |
Hey folks, Just to let you know that I've made pull request with no We will research how to implement debugging with lyvesync as well! |
That's awesome news! But how do we use this? "tns livesync ios --watch" doesn't enable debugger. Is there any additional command? I haven't found any info on that in the docs or any where else... |
In this case you should use: |
@tzraikov: Is there documentation anywhere on how you can do this with the Visual Studio Code debugger? In Visual Studio Code I can attach a debugger, but once I perform a single LiveSync the debugger no longer works as expected. |
Just fyi I submitted an issue requesting that the VS Code extension support this workflow: nativescript-community/nativescript-vscode-extension#70. |
Hi everybody! Just started my first Native + Angular project... Seems great! But I'm facing a big issue: tns debug android take nearly 15min to start app on emulator... is this normal ? and a lot of waring or errors are displayed in console before (like xml malformed error in node_modules/........" Any clue? is this "normal" ?? Thx Salva |
@Infrid on slack brought up this suggestion, and it makes sense to me... ability to debug, fix the bug, and have livesync reload me instantly seems like a super powerful concept.
The text was updated successfully, but these errors were encountered: