mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-26 08:35:53 +03:00
[GH-ISSUE #464] Map local #461
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#461
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 )
@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 😄
@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.
@NghiaTranUIT commented on GitHub (Mar 31, 2020):
Thanks.
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?
@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 ?
@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.