Skip to content

Don't open a browser when $DISPLAY is not set #203

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

Merged
merged 2 commits into from
Mar 12, 2020

Conversation

cbiesinger
Copy link
Collaborator

This also prints some instructions for setting up SSH port forwarding.

I've also used this opportunity to set things up such that pressing Enter will
not repeat the jsdbg command.

Usually, when pressing enter, GDB will repeat the last command.
This can be very useful for commands like "next". But for "jsdbg",
this is not ideal, especially when the user presses enter to get
back to the GDB prompt after the text from jsdbg has been printed.

This patch suppresses that behavior.
E.g. when connected via SSH to a remote host (without X forwarding).
Otherwise, Python's webbrowser module will open a browser like elinks,
taking you out of GDB.

This also prints instructions for setting up SSH port forwarding.
@cbiesinger cbiesinger requested a review from sanketj March 12, 2020 20:36
@cbiesinger cbiesinger merged commit 6ab4c4b into MicrosoftEdge:master Mar 12, 2020
@cbiesinger cbiesinger deleted the master branch April 2, 2021 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants