flutter / devtools

Performance tools for Flutter
https://flutter.dev/docs/development/tools/devtools/
BSD 3-Clause "New" or "Revised" License
1.58k stars 326 forks source link

Enhancement: copy texts from Dart Network tool #7365

Open hn-n opened 7 months ago

hn-n commented 7 months ago

<-- Please describe your problem here. Be sure to include repro steps. -->

Hello, thanks Flutter team for all the efforts! The issue is you can not copy any text from the Dart Network Tool


DevTools version: 2.31.1 IDE: VSCode Connected Device: CPU / OS: x64 (64 bit) ios Connected app type: Flutter native (debug build) Dart Version: 3.3.0 Flutter Version: 3.19.1 / stable Framework / Engine: abb292a07e / 04817c99c9

escamoteur commented 4 months ago

Please do that! I'm goind mad when I want to transfer something from the Monitor to our ticket system. it should be possible on all elememts on that page. Right click to copy one of the table cells would be good too.

CoderDake commented 4 months ago
Screenshot 2024-05-29 at 12 00 55 PM

What kind of information are you looking to copy? In the response tab there is currently lots of options for copy. On the Overview and Headers tab you should be able to select with your cursor and copy/paste

escamoteur commented 4 months ago

I can select yes but if I type ctrl C it isn't copied to the clipboard Am 29. Mai 2024, 18:02 +0200 schrieb Daniel Chevalier @.***>:

Screenshot.2024-05-29.at.12.00.55.PM.png (view on web) What kind of information are you looking to copy? In the response tab there is currently lots of options for copy. On the Overview and Headers tab you should be able to select with your cursor and copy/paste — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

hn-n commented 4 months ago

endpoint url can't be copied in response body the shortcut "cmd + c" is not working, you must manually press the copy button

CoderDake commented 4 months ago

Without a larger refactor we are limited to using those copy buttons on the response tab. The json viewer is limited to 1 line, so there is never a guarantee that we will be showing the whole line at any given time.

On the other hand you should be able to use ctrl/cmd+c for the Uri in the request list. Are you currently running into issues there as well?

There is also a context menu for copying those Uri's which may come in handy sometimes.

Screenshot 2024-05-29 at 1 39 23 PM
escamoteur commented 4 months ago

But it's not possible to copy anything from the request tab. There is no copy button or context menu Am 29. Mai 2024, 19:39 +0200 schrieb Daniel Chevalier @.***>:

Without a larger refactor we are limited to using those copy buttons on the response tab. The json viewer is limited to 1 line, so there is never a guarantee that we will be showing the whole line at any given time. On the other hand you should be able to use ctrl/cmd+c for the Uri in the request list. Are you currently running into issues there as well? There is also a context menu for copying those Uri's which may come in handy sometimes. Screenshot.2024-05-29.at.1.39.23.PM.png (view on web) — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

CoderDake commented 4 months ago

Ok I might not be following then, could you please post some screenshots or instructions so I can see what you are talking about ? When I am on the request tab I am seeing some copy options.

Screenshot 2024-05-29 at 1 50 08 PM
escamoteur commented 4 months ago

Sorry, my fault, I meant the overview and header tab Am 29. Mai 2024, 19:51 +0200 schrieb Daniel Chevalier @.***>:

Ok I might not be following then, could you please post some screenshots or instructions so I can see what you are talking about ? When I am on the request tab I am seeing some copy options. Screenshot.2024-05-29.at.1.50.08.PM.png (view on web) — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

CoderDake commented 4 months ago

Just to be sure, does selecting text and hitting ctrl/cmd+c (or right click copy) work for you in the overview tab? I recently made a change that should have fixed that.

escamoteur commented 4 months ago

Sorry, I'm currently on the road, nope, no context menu and no Ctrl+C image I just did a flutter upgrade so I should have the latest dev tools, right?

escamoteur commented 4 months ago

@CoderDake any idea why I don't have the latest version of the devtools? I'm on latest flutter but the Networktool still doesn't show any of the new features that I have now too seen on a screenshot of a college.

CoderDake commented 4 months ago

@escamoteur I'm unsure why you might be seeing an old version of devtools. Could you please post your flutter version, the version of devtools you are seeing, and how you are opening devtools? Some screenshots for what you are seeing could be helpful as well.

escamoteur commented 4 months ago

@CoderDake how can I see the version of the devtools inside VS code?

escamoteur commented 4 months ago

OK, when I open Dev Tools in the browser I see Version: DevTools version 2.34.3 but I'm not sure if that means it's the same version in VS code.

I open devtools like always with Shift+Ctrl+P and then select image

the top entry.

this is how my network page looks like image

Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 3.22.0, on Microsoft Windows [Version 10.0.19045.4412], locale de-DE) [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 33.0.2) [√] Chrome - develop for the web [√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.6.2) [√] Android Studio (version 2022.2) [√] VS Code, 64-bit edition (version 1.89.1) [√] Connected device (4 available) [√] Network resources

Wie use FVM Flutter SDK : SDK Version : 3.22.0 if that makes any difference

Flutter plugin More Info Published 2018-04-18, 17:49:03 Last released 2024-05-29, 16:01:50 Last updated 2024-05-29, 18:26:50 Identifier dart-code.flutter