mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-26 16:45:57 +03:00
[GH-ISSUE #880] Automatic breakpoint behaviour without pausing #875
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#875
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 @sundeepgupta on GitHub (May 6, 2021).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/880
Originally assigned to: @NghiaTranUIT on GitHub.
This is a feature request to allow for configuring a breakpoint with rules, and let the breakpoint happen without pausing.
Example Use Case
I'm developing a feature on an iOS app which requires a network request to the backend. However, the backend has a bug and is sending the wrong response JSON. The request needs to happen though to update data in the backend's database.
Currently, I need to set a breakpoint on that request's response so I can edit and correct the response. However, this becomes slow and cumbersome as I need to do it over and over again. It would be nice if I could setup a rule for the breakpoint, but not have it actually pause the request/response. Much like Xcode's breakpoint feature:
@NghiaTranUIT commented on GitHub (May 6, 2021):
Hi @sundeepgupta,
You can do "Automatic Breakpoint" by Map Local or Scripting. They are more efficient and less tedious work.
Map Local
PS: You can also edit Response Header and Status code too
Tutorial: https://proxyman.io/blog/2019/08/map-local-feature.html
Scripting
Scripting allows you to write JS Code that set a response with a file or directly manipulate it
Here is a snipped code: https://docs.proxyman.io/scripting/snippet-code#json
@sundeepgupta commented on GitHub (May 6, 2021):
Thanks @NghiaTranUIT , I see. Map Local doesn't work for that use case because the request does indeed need to hit the server. The Scripting feature seems to be what I'm after. I'll check it out - thanks!
@NghiaTranUIT commented on GitHub (May 7, 2021):
@sundeepgupta With the scripting tool, you can do whatever Breakpoint, Map Local, and Map Remote can do.
Make sure you check out the Snippet Code, where you can find all common code 👍
@sundeepgupta commented on GitHub (May 7, 2021):
Scripting feature worked like a charm - thanks again!
@NghiaTranUIT commented on GitHub (May 7, 2021):
@sundeepgupta Glad to know that it helps you 🙌 😄