[GH-ISSUE #880] Automatic breakpoint behaviour without pausing #875

Closed
opened 2026-03-03 19:22:38 +03:00 by kerem · 5 comments
Owner

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:

image
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: <img width="329" alt="image" src="https://user-images.githubusercontent.com/2365037/117306531-c1149b00-ae4d-11eb-9b8e-559e6f891e17.png">
kerem 2026-03-03 19:22:38 +03:00
  • closed this issue
  • added the
    Done
    label
Author
Owner

@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

  1. Make a request with your sample response
  2. Right Click on the flow -> Tool -> Map Local
  3. It will create a rule with current response
  4. Then, you can directly edit the JSON Response
  5. As soon as you make a request again, it will bring the Map Local Response automatically
    PS: You can also edit Response Header and Status code too
Screen Shot 2021-05-06 at 8 34 46 PM

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

<!-- gh-comment-id:833530688 --> @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 1. Make a request with your sample response 2. Right Click on the flow -> Tool -> Map Local 3. It will create a rule with current response 4. Then, you can directly edit the JSON Response 5. As soon as you make a request again, it will bring the Map Local Response automatically PS: You can also edit Response Header and Status code too <img width="1239" alt="Screen Shot 2021-05-06 at 8 34 46 PM" src="https://user-images.githubusercontent.com/5878421/117307138-81c86780-aeaa-11eb-98bc-f8cf279ad5b0.png"> 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
Author
Owner

@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!

<!-- gh-comment-id:833582032 --> @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!
Author
Owner

@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 👍

<!-- gh-comment-id:833994997 --> @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 👍
Author
Owner

@sundeepgupta commented on GitHub (May 7, 2021):

Scripting feature worked like a charm - thanks again!

<!-- gh-comment-id:834370758 --> @sundeepgupta commented on GitHub (May 7, 2021): Scripting feature worked like a charm - thanks again!
Author
Owner

@NghiaTranUIT commented on GitHub (May 7, 2021):

@sundeepgupta Glad to know that it helps you 🙌 😄

<!-- gh-comment-id:834371515 --> @NghiaTranUIT commented on GitHub (May 7, 2021): @sundeepgupta Glad to know that it helps you 🙌 😄
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#875
No description provided.