fix: Device logs are not properly shown with debug command #3628
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The console.log from application should be shown in the terminal when
tns debug <platform>
command is executed.When
tns debug android --start
is used, the console.log messages are not visible as noone has started reading them. Add logic to read and filter them based on the PID of the application.When
tns debug ios [--start]
is used with older runtime (4.0.1 for example) with iOS Simulator, the device logs are not shown as the filtering is based on the projectName, but noone has set this projectName to the filter. So we filter everything. Fix this by setting the projectName to the filter instance.Fix the
tns debug ios --justlaunch
andtns debug ios --start --justlaunch
which are always printing console.logs, while in fact they shouldn't.PR Checklist
What is the current behavior?
Missing console.logs when
tns debug android --start
ortns debug ios
is used.What is the new behavior?
Console.logs are visible.
Fixes:
tns debug android --start
releases the terminal session #2831tns debug android --start
does not print application console.logs #3629