[GH-ISSUE #222] [Breakpoint] #5 Breakpoint Logic #221

Open
opened 2026-03-03 19:49:15 +03:00 by kerem · 1 comment
Owner

Originally created by @NghiaTranUIT on GitHub (Apr 10, 2023).
Original GitHub issue: https://github.com/ProxymanApp/proxyman-windows-linux/issues/222

Originally assigned to: @kics223w1 on GitHub.

Description

⚠️ This ticket must be implemented after #221 is done.

Continue logic

  • Continue means: Ignore all changes from the BreakpointData and send the original Request/Response.
  • Continue button can work with multiple selections.
  • "Continue All" would perform the continue to all breakpoints.
  • When the breakpoint is continued -> Remove from the waiting Breakpoint List -> Auto Select the first breakpoint -> Make sure the Request/Response Editor is updated with a selected breakpoint

Abort

  • Abort means: Stopping the connection immediately.
  • Abort button can work with multiple selections.
  • "Abort All" would perform the continue to all breakpoints.
  • When the breakpoint is aborted -> Remove from the waiting Breakpoint List -> Auto Select the first breakpoint -> Make sure the Request/Response Editor is updated with a selected breakpoint

Execute

  • Execute means: Build a new Request or Response with a current BreakpointData.
  • Ping @NghiaTranUIT to get the Breakpoint class and BreakpointData class
  • Build the Request parts properly, including Method, URL, Header, Query, Body, Formed Body
  • Build the Response part properly, including Status Code, Headers, Body

How to test

Case 1: Request Breakpoint (Happy case)

  1. Make a POST httpbin.org request to Proxyman
  2. Right-Click -> Tools -> Breakpoint
  3. Select onRequest, and deselect the onResponse checkbox
  4. Create an entry
  5. Make a request again
  6. The Breakpoint Windows (#221) appear -> There is 1 breakpoint in the list -> Auto-select the first breakpoint -> Update the Editor Part
  7. Make sure: The Request Editor is displayed, and the Response is hidden.
  8. Modify the Body and the Header
  9. Execute
  10. Back to Insomnia app -> Check the body and verify the Request is updated properly by the Breakpoint Tool

Case 2: Response Breakpoint (Happy case)

  1. Make a POST httpbin.org request to Proxyman
  2. Right-Click -> Tools -> Breakpoint
  3. Deselect the onRequest, and select the onResponse checkbox
  4. Create an entry
  5. Make a request again
  6. The Breakpoint Windows (#221) appear -> There is 1 breakpoint in the list -> Auto-select the first breakpoint -> Update the Editor Part
  7. Make sure: The Request Editor is displayed and it's in Read-only Mode, and the Response is displayed.
  8. Modify the Body and the Header and status code
  9. Execute
  10. Back to the Insomnia app -> Check the body and verify the Request is updated properly by the Breakpoint Tool
Originally created by @NghiaTranUIT on GitHub (Apr 10, 2023). Original GitHub issue: https://github.com/ProxymanApp/proxyman-windows-linux/issues/222 Originally assigned to: @kics223w1 on GitHub. ## Description ⚠️ This ticket must be implemented after #221 is done. ## Continue logic - Continue means: Ignore all changes from the `BreakpointData` and send the original Request/Response. - Continue button can work with multiple selections. - "Continue All" would perform the continue to all breakpoints. - When the breakpoint is continued -> Remove from the waiting Breakpoint List -> Auto Select the first breakpoint -> Make sure the Request/Response Editor is updated with a selected breakpoint ## Abort - Abort means: Stopping the connection immediately. - Abort button can work with multiple selections. - "Abort All" would perform the continue to all breakpoints. - When the breakpoint is aborted -> Remove from the waiting Breakpoint List -> Auto Select the first breakpoint -> Make sure the Request/Response Editor is updated with a selected breakpoint ## Execute - Execute means: Build a new Request or Response with a current `BreakpointData`. - Ping @NghiaTranUIT to get the `Breakpoint` class and `BreakpointData` class - Build the Request parts properly, including Method, URL, Header, Query, Body, Formed Body - Build the Response part properly, including Status Code, Headers, Body ### How to test #### Case 1: Request Breakpoint (Happy case) 1. Make a POST httpbin.org request to Proxyman 2. Right-Click -> Tools -> Breakpoint 3. Select `onRequest`, and deselect the `onResponse` checkbox 4. Create an entry 5. Make a request again 6. The Breakpoint Windows (#221) appear -> There is 1 breakpoint in the list -> Auto-select the first breakpoint -> Update the Editor Part 7. Make sure: The Request Editor is displayed, and the Response is hidden. 8. Modify the Body and the Header 9. Execute 10. Back to Insomnia app -> Check the body and verify the Request is updated properly by the Breakpoint Tool #### Case 2: Response Breakpoint (Happy case) 1. Make a POST httpbin.org request to Proxyman 2. Right-Click -> Tools -> Breakpoint 3. Deselect the `onRequest`, and select the `onResponse` checkbox 4. Create an entry 5. Make a request again 6. The Breakpoint Windows (#221) appear -> There is 1 breakpoint in the list -> Auto-select the first breakpoint -> Update the Editor Part 7. Make sure: The Request Editor is displayed and it's in Read-only Mode, and the Response is displayed. 8. Modify the Body and the Header and status code 9. Execute 10. Back to the Insomnia app -> Check the body and verify the Request is updated properly by the Breakpoint Tool
Author
Owner

@NghiaTranUIT commented on GitHub (Apr 20, 2023):

Update 1:

<!-- gh-comment-id:1515623891 --> @NghiaTranUIT commented on GitHub (Apr 20, 2023): ### Update 1: - Add two options for the Abort logic: https://github.com/ProxymanApp/Proxyman/issues/1606#issuecomment-1514951132
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-windows-linux#221
No description provided.