[GH-ISSUE #464] Map local #461

Open
opened 2026-03-03 19:18:59 +03:00 by kerem · 5 comments
Owner

Originally created by @vadeneev on GitHub (Mar 31, 2020).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/464

Originally assigned to: @NghiaTranUIT on GitHub.

Proxyman 1.19.0

mac 10.15.3

Steps to reproduce

Use Map Local feature, choose big file (script / style ) to replace remote resource.
It will take a lot of time to load and show this file for app.

Expected behavior

Local mapped file should not be displayed in text area by default ( it would help to load file immediate without delays )

Originally created by @vadeneev on GitHub (Mar 31, 2020). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/464 Originally assigned to: @NghiaTranUIT on GitHub. ### Proxyman 1.19.0 ### mac 10.15.3 ### Steps to reproduce Use Map Local feature, choose big file (script / style ) to replace remote resource. It will take a lot of time to load and show this file for app. ### Expected behavior Local mapped file should not be displayed in text area by default ( it would help to load file immediate without delays )
Author
Owner

@NghiaTranUIT commented on GitHub (Mar 31, 2020):

Hey @vadeneev, can you share with me what is the size of the big file is? 5Mb, 10Mb? I will investigate and fix this issue 👍

Btw, please update to Proxyman 1.20.0 😄

<!-- gh-comment-id:606430674 --> @NghiaTranUIT commented on GitHub (Mar 31, 2020): Hey @vadeneev, can you share with me what is the size of the big file is? 5Mb, 10Mb? I will investigate and fix this issue 👍 Btw, please update to Proxyman 1.20.0 😄
Author
Owner

@vadeneev commented on GitHub (Mar 31, 2020):

Hey, @NghiaTranUIT

I could reproduce that with files > 2mb ( in particular case, it is JS build file 2.3mb and 2.6mb )

In addition - it would be great to have ability to map local files without preview by regex pattern as well ( in case of webpack / other bundler continuous build ) for better web debugging.

<!-- gh-comment-id:606436983 --> @vadeneev commented on GitHub (Mar 31, 2020): Hey, @NghiaTranUIT I could reproduce that with files > 2mb ( in particular case, it is **JS** build file 2.3mb and 2.6mb ) In addition - it would be great to have ability to map local files without preview by regex pattern as well ( in case of webpack / other bundler continuous build ) for better web debugging.
Author
Owner

@NghiaTranUIT commented on GitHub (Mar 31, 2020):

I could reproduce that with files > 2mb ( in particular case, it is JS build file 2.3mb and 2.6mb )

Thanks.

In addition - it would be great to have ability to map local files without preview by regex pattern as well ( in case of webpack / other bundler continuous build ) for better web debugging.

Can you elaborate? I'm not sure what "without preview by regex pattern" means 🤔 If you create a Map Local entry by right-clicking on the request -> Tool -> Map Local. I will fill the regex rule automatically. Is it what you mean?

<!-- gh-comment-id:606438051 --> @NghiaTranUIT commented on GitHub (Mar 31, 2020): > I could reproduce that with files > 2mb ( in particular case, it is JS build file 2.3mb and 2.6mb ) Thanks. > In addition - it would be great to have ability to map local files without preview by regex pattern as well ( in case of webpack / other bundler continuous build ) for better web debugging. Can you elaborate? I'm not sure what "without preview by regex pattern" means 🤔 If you create a Map Local entry by right-clicking on the request -> Tool -> Map Local. I will fill the regex rule automatically. Is it what you mean?
Author
Owner

@vadeneev commented on GitHub (Mar 31, 2020):

I wrote it in wrong way, so, right now:
proxyman fills regex automatically for mapped resource, in case of web-debugging and continuous build of local resources ( they would be generated with different hash mostly every time ):
right-click -> Tool -> Map Local -> choose File -> Work -> (local file updates) -> choose file again -> ...
It would be great to have:
right-click -> Tool -> Map Local -> specify File's regex -> Work

I believe described is feature request, should I create extra ticket for it ?

<!-- gh-comment-id:606442107 --> @vadeneev commented on GitHub (Mar 31, 2020): I wrote it in wrong way, so, right now: proxyman fills regex automatically for mapped resource, in case of web-debugging and continuous build of local resources ( they would be generated with different hash mostly every time ): right-click -> Tool -> Map Local -> choose File -> Work -> (local file updates) -> choose file again -> ... It would be great to have: right-click -> Tool -> Map Local -> specify File's regex -> Work I believe described is feature request, should I create extra ticket for it ?
Author
Owner

@NghiaTranUIT commented on GitHub (Apr 1, 2020):

Hey @vadeneev , let check this beta: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_1.20.0_Local_Map_Freeze_On_Large_File.dmg

Basically, it's one of the shortcomings of CodeMirror when rendering a huge file on the main thread. Thus, the app is hanging.

I added a minor improvement that not presenting the large text in CodeMirror view and there is no freeze anymore 👍 Additionally, you might edit the file as usual by opening via external Editors (Sublime or VSCode), and the local file is updated as well.

Screen Shot 2020-04-01 at 10 47 06
<!-- gh-comment-id:607016204 --> @NghiaTranUIT commented on GitHub (Apr 1, 2020): Hey @vadeneev , let check this beta: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_1.20.0_Local_Map_Freeze_On_Large_File.dmg Basically, it's one of the shortcomings of CodeMirror when rendering a huge file on the main thread. Thus, the app is hanging. I added a minor improvement that not presenting the large text in CodeMirror view and there is no freeze anymore 👍 Additionally, you might edit the file as usual by opening via external Editors (Sublime or VSCode), and the local file is updated as well. <img width="1665" alt="Screen Shot 2020-04-01 at 10 47 06" src="https://user-images.githubusercontent.com/5878421/78097892-c3652400-7407-11ea-9be0-0d0b3d88b8f6.png">
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Proxyman#461
No description provided.