Skip to content
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

Debug server #225

Draft
wants to merge 49 commits into
base: master
Choose a base branch
from
Draft

Debug server #225

wants to merge 49 commits into from

Conversation

xepozz
Copy link
Member

@xepozz xepozz commented Sep 7, 2023

Q A
Is bugfix?
New feature? ✔️
Breaks BC?

yiisoft/yii-dev-panel#70

image

@codecov
Copy link

codecov bot commented Sep 7, 2023

Codecov Report

Attention: Patch coverage is 8.42105% with 174 lines in your changes are missing coverage. Please review.

❗ No coverage uploaded for pull request base (master@b79ba7f). Click here to learn what that means.

❗ Current head 6ecd849 differs from pull request most recent head d5a9ef1. Consider uploading reports for the commit d5a9ef1 to get more accurate results

Files Patch % Lines
src/DebugServer/Connection.php 0.00% 89 Missing ⚠️
src/Command/DebugServerCommand.php 0.00% 49 Missing ⚠️
src/Command/DebugServerBroadcastCommand.php 0.00% 24 Missing ⚠️
src/DebugServer/LoggerDecorator.php 0.00% 8 Missing ⚠️
src/DebugServer/VarDumperHandler.php 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master     #225   +/-   ##
=========================================
  Coverage          ?   74.29%           
  Complexity        ?      617           
=========================================
  Files             ?       45           
  Lines             ?     1957           
  Branches          ?        0           
=========================================
  Hits              ?     1454           
  Misses            ?      503           
  Partials          ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@what-the-diff
Copy link

what-the-diff bot commented Sep 7, 2023

PR Summary

  • Inclusion of Yiisoft\VarDumper\HandlerInterface
    This required element has been added to the composer-require-checker.json file, ensuring the necessary dependencies for the project.

  • Addition of bootstrap in composer
    The composer.json file now specifies a bootstrap file, bootstrap.php. This allows the application to initialize certain assets before running.

  • Creation of bootstrap.php file
    A new file bootstrap.php has been established to house additional code for the application's startup process.

  • Enhancements in params.php file
    Several use statements have been added to params.php to import required functionalities. New collectors have also been included in this file.

  • Expansion of src/Collector directory
    New files have been added and existing ones have been modified in 'src/Collector' directory, including a variety of Collectors and Command files. These enhancements support a range of functionalities includes logging, event monitoring, and timeline management.

  • Introduction of DevServer Commands
    New files DevServerBroadcastCommand.php and DevServerCommand.php have been introduced in the src/Command directory to execute commands for the development server.

  • New src/DevServer/Connection.php file
    A Connection class within the new src/DevServer/Connection.php file has been added. This plays an important role in setting up and managing socket connections.

  • Implementation of VarDumperHandler class
    A new file src/DevServer/VarDumperHandler.php has been added which contains VarDumperHandler class. This class implements HandlerInterface and is responsible for broadcasting variable using the Connection class.

  • Tests Modified
    Several tests are updated with new parameters in their respective constructors. This includes tests for CommandCollector, ConsoleAppInfoCollector, ServiceCollector, EventCollector, LogCollector, MiddlewareCollector, RequestCollector, ServiceCollector, and WebAppInfoCollector. These changes help to increase the accuracy and efficiency of unit testing.

@xepozz xepozz changed the base branch from master to timeline September 8, 2023 06:51
@xepozz xepozz changed the title Dev server Debug server Sep 16, 2023
xepozz and others added 2 commits September 16, 2023 16:51
* Add timeline collector

* Change timeline signature

* Use microtime instead of time

* Remove redundant property

* Apply fixes from StyleCI

* Fix tests & psalm errors

---------

Co-authored-by: StyleCI Bot <[email protected]>
Base automatically changed from timeline to var-dumper September 16, 2023 16:07
Base automatically changed from var-dumper to master October 8, 2023 11:43
@samdark
Copy link
Member

samdark commented Dec 6, 2024

What's left to finish it?

@xepozz
Copy link
Member Author

xepozz commented Dec 7, 2024

Socket transfer stabilization, tests, documentation, peer-to-peer optimization, better view for yii-dev-panel part :)

@xepozz
Copy link
Member Author

xepozz commented Dec 7, 2024

I think we'll finish it after the first release, but it works quite well already (year ago)

@samdark samdark added this to the 2.0.0 milestone Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants