Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Feat: Start debugger before a script is executed #2686

Open
1 task done
tho-gru-38 opened this issue Jul 23, 2024 · 0 comments
Open
1 task done

New Feat: Start debugger before a script is executed #2686

tho-gru-38 opened this issue Jul 23, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@tho-gru-38
Copy link

tho-gru-38 commented Jul 23, 2024

I have checked the following:

  • I've searched existing issues and found nothing related to my issue.

Describe the feature you want to add

Hi,

In #2319 I asked how to debug scripts and tests.

As @Its-treason mentioned that currently the only option to debug scripts is to insert console.log() to print out some variables. May be that this approach is sufficient when creating new scripts.

I import a huge Postman collection into Bruno. After removing the syntax errors I am often "lost in space" because I can not see where to insert the console.log() statements to quickly see what is going wrong.

Therefore I hope to get some sort of support for debugging a script.

In the Mockup sections I provided a first idea of getting the checkbox for all scripts: collection, folder and request - all points in time: pre request, post response and tests.

If the check box is active the debugger should stop at the first line of the corresponding script. Furthermore the source of the script should be displayed in the chrome debugger tools.

As alternative to the check boxes you can provide a function called bru.breakpoint() (or similar) so the developer can write this into the source of a script to get the debugger stop at this line. I can not estimate which solution will need more effort.

Kind Regards,
Thomas

Mockups or Images of the feature

Here I show the UI implementation I wish:

Folder-Scripts

Folder-Tests

@tho-gru-38 tho-gru-38 added the enhancement New feature or request label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant